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.

104 lines
2.3 KiB

  1. @echo off
  2. REM ------------------------------------------------------------------
  3. REM
  4. REM twclient.cmd
  5. REM Build Timewarp client bits every build
  6. REM Owner: aoltean
  7. REM
  8. REM Copyright (c) Microsoft Corporation. All rights reserved.
  9. REM
  10. REM ------------------------------------------------------------------
  11. if defined _CPCMAGIC goto CPCBegin
  12. perl -x "%~f0" %*
  13. goto :EOF
  14. #!perl
  15. use strict;
  16. use lib $ENV{RAZZLETOOLPATH} . "\\PostBuildScripts";
  17. use lib $ENV{RAZZLETOOLPATH};
  18. use PbuildEnv;
  19. use ParseArgs;
  20. sub Usage { print<<USAGE; exit(1) }
  21. twclient
  22. Build timewarp client bits.
  23. USAGE
  24. parseargs('?' => \&Usage);
  25. # *** NEXT FEW LINES ARE TEMPLATE ***
  26. $ENV{"_CPCMAGIC"}++;exit(system($0)>>8);
  27. __END__
  28. :CPCBegin
  29. set _CPCMAGIC=
  30. setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
  31. REM *** BEGIN YOUR CMD SCRIPT BELOW ***
  32. set _PER=1
  33. set _BLA=1
  34. set _SBS=1
  35. set _SRV=1
  36. set _ADS=1
  37. set _DTC=1
  38. perl %RazzleToolPath%\cksku.pm -t:per -l:%lang%
  39. if errorlevel 1 set _PER=
  40. perl %RazzleToolPath%\cksku.pm -t:bla -l:%lang%
  41. if errorlevel 1 set _BLA=
  42. perl %RazzleToolPath%\cksku.pm -t:sbs -l:%lang%
  43. if errorlevel 1 set _SBS=
  44. perl %RazzleToolPath%\cksku.pm -t:srv -l:%lang%
  45. if errorlevel 1 set _SRV=
  46. perl %RazzleToolPath%\cksku.pm -t:ads -l:%lang%
  47. if errorlevel 1 set _ADS=
  48. perl %RazzleToolPath%\cksku.pm -t:dtc -l:%lang%
  49. if errorlevel 1 set _DTC=
  50. if defined _SBS goto ValidSku
  51. if defined _BLA goto ValidSku
  52. if defined _SRV goto ValidSku
  53. if defined _ADS goto ValidSku
  54. if defined _DTC goto ValidSku
  55. call logmsg.cmd "TwClient not built for non server products..."
  56. goto :EOF
  57. :ValidSku
  58. REM
  59. REM Only do this for X86 and IA64 builds for now.
  60. REM
  61. if defined 386 goto :PROCESS
  62. REM - build break on IA64 machines -
  63. REM if defined ia64 goto :PROCESS
  64. goto :EOF
  65. REM
  66. REM Build the timewarp client MSI data cab
  67. REM
  68. :PROCESS
  69. pushd %_NTPostBld%\twclient
  70. call ExecuteCmd.cmd "twmsigen.cmd"
  71. popd
  72. if errorlevel 1 goto :EOF
  73. REM
  74. REM Copy the timewarp client MSI into the _NTPOSTBLD directory
  75. REM
  76. REM BUGBUG: The USA directory is always used
  77. REM regardless of the language. This is OK.
  78. REM
  79. if defined 386 copy /Y %_NTPostBld%\twclient\usa\twcli32.msi %_NTPOSTBLD%
  80. if defined ia64 copy /Y %_NTPostBld%\twclient\usa\twcli64.msi %_NTPOSTBLD%