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.

63 lines
1.7 KiB

  1. @echo off
  2. REM ------------------------------------------------------------------
  3. REM
  4. REM <<template_script.cmd>>
  5. REM <<purpose of this script>>
  6. REM
  7. REM Copyright (c) Microsoft Corporation. All rights reserved.
  8. REM
  9. REM ------------------------------------------------------------------
  10. if defined _CPCMAGIC goto CPCBegin
  11. perl -x "%~f0" %*
  12. goto :EOF
  13. #!perl
  14. use strict;
  15. use lib $ENV{RAZZLETOOLPATH} . "\\PostBuildScripts";
  16. use lib $ENV{RAZZLETOOLPATH};
  17. use PbuildEnv;
  18. use ParseArgs;
  19. sub Usage { print<<USAGE; exit(1) }
  20. <<Insert your usage message here>>
  21. USAGE
  22. parseargs('?' => \&Usage);
  23. # *** NEXT FEW LINES ARE TEMPLATE ***
  24. $ENV{"_CPCMAGIC"}++;exit(system($0)>>8);
  25. __END__
  26. :CPCBegin
  27. set _CPCMAGIC=
  28. setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
  29. REM *** BEGIN YOUR CMD SCRIPT BELOW ***
  30. REM NOTE TO BUILD TEAM -- NOTE TO BUILD TEAM -- NOTE TO BUILD TEAM -- NOTE TO BUILD TEAM
  31. REM
  32. REM GPMC is an add-on for release after Server. If this script gives the build lab any problems,
  33. REM please disable it, mail gpmcdev, and continue. We don't want to hold up Server. Thank you.
  34. REM
  35. REM NOTE TO BUILD TEAM -- NOTE TO BUILD TEAM -- NOTE TO BUILD TEAM -- NOTE TO BUILD TEAM
  36. REM IA64 builds are not currently available
  37. if /I NOT "%_BuildArch%"=="x86" (
  38. goto :EOF
  39. )
  40. REM
  41. REM Allow for full pass post-build. Necessary for things like pseudo-localization
  42. REM
  43. set NMAKE_FLAGS=/NOLOGO
  44. if exist %_NTPOSTBLD%\build_logs\FullPass.txt (
  45. set NMAKE_FLAGS=%NMAKE_FLAGS% /a
  46. )
  47. REM
  48. REM Complete the GPMC.msi
  49. REM
  50. pushd %_NTPOSTBLD%\gpmc\WorkDir
  51. call ExecuteCmd.cmd "nmake %NMAKE_FLAGS% /f gpmcMSI.mak "
  52. if errorlevel 1 (
  53. call errmsg.cmd "Cannot build GPMC MSI"
  54. popd & goto :EOF
  55. )
  56. popd