Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

99 lines
2.1 KiB

  1. @REM -----------------------------------------------------------------
  2. @REM
  3. @REM fxsclient.cmd - MoolyB
  4. @REM Build Fax server client bits every build
  5. @REM
  6. @REM Copyright (c) Microsoft Corporation. All rights reserved.
  7. @REM
  8. @REM -----------------------------------------------------------------
  9. @if defined _CPCMAGIC goto CPCBegin
  10. @perl -x "%~f0" %*
  11. @goto :EOF
  12. #!perl
  13. use strict;
  14. use lib $ENV{RAZZLETOOLPATH} . "\\PostBuildScripts";
  15. use lib $ENV{RAZZLETOOLPATH};
  16. use PbuildEnv;
  17. use ParseArgs;
  18. sub Usage { print<<USAGE; exit(1) }
  19. fxsclient
  20. Build fax server client bits.
  21. USAGE
  22. parseargs('?' => \&Usage);
  23. # *** TEMPLATE CODE ***
  24. $ENV{"_CPCMAGIC"}++;exit(system($0)>>8);
  25. __END__
  26. @:CPCBegin
  27. @set _CPCMAGIC=
  28. @setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
  29. @if not defined DEBUG echo off
  30. @REM *** CMD SCRIPT BELOW ***
  31. set _PER=1
  32. set _BLA=1
  33. set _SBS=1
  34. set _SRV=1
  35. set _ADS=1
  36. set _DTC=1
  37. perl %RazzleToolPath%\cksku.pm -t:per -l:%lang%
  38. if errorlevel 1 set _PER=
  39. perl %RazzleToolPath%\cksku.pm -t:bla -l:%lang%
  40. if errorlevel 1 set _BLA=
  41. perl %RazzleToolPath%\cksku.pm -t:sbs -l:%lang%
  42. if errorlevel 1 set _SBS=
  43. perl %RazzleToolPath%\cksku.pm -t:srv -l:%lang%
  44. if errorlevel 1 set _SRV=
  45. perl %RazzleToolPath%\cksku.pm -t:ads -l:%lang%
  46. if errorlevel 1 set _ADS=
  47. perl %RazzleToolPath%\cksku.pm -t:dtc -l:%lang%
  48. if errorlevel 1 set _DTC=
  49. if defined _SBS goto ValidSku
  50. if defined _SRV goto ValidSku
  51. if defined _ADS goto ValidSku
  52. if defined _DTC goto ValidSku
  53. call logmsg.cmd "FxsClient not built for non server products..."
  54. goto :EOF
  55. :ValidSku
  56. REM
  57. REM Only do this for X86 builds for now.
  58. REM
  59. if defined ia64 goto :EOF
  60. if defined amd64 goto :EOF
  61. if NOT defined 386 goto :EOF
  62. REM
  63. REM Build the fax client MSI data cab
  64. REM
  65. pushd %_NTPostBld%\faxclients
  66. call ExecuteCmd.cmd "fxsmsigen.cmd"
  67. if errorlevel 1 (
  68. call errmsg.cmd "failed to generate cab file"
  69. goto errend
  70. )
  71. popd
  72. REM
  73. REM Update binaries sizes in the INF
  74. REM
  75. for /f %%a in ('dir /s /b %_NTPOSTBLD%\fxsocm.inf') do (
  76. call %_NTPOSTBLD%\fxsinfsize.exe /i:%%a /p:%_NTPOSTBLD%
  77. )