Source code of Windows XP (NT5)
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.

50 lines
1.5 KiB

  1. @echo off
  2. REM ------------------------------------------------------------------
  3. REM
  4. REM signtheme.cmd
  5. REM Add the Visual Style signature which will allow us to release
  6. REM visual styles later.
  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. usage: signtheme.cmd [-l:lang]
  22. Signs theme files
  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. REM Visual Styles are only available on x86
  33. if /i "%_BuildArch%" == "x86" (
  34. call ExecuteCmd.cmd "packthem.exe -p -q %_NTPOSTBLD%\luna.mst"
  35. if errorlevel == 1 (
  36. date /t >> %_NTPOSTBLD%\packthem_parse_error.log
  37. time /t >> %_NTPOSTBLD%\packthem_parse_error.log
  38. packthem.exe -p -q %_NTPOSTBLD%\luna.mst >> %_NTPOSTBLD%\packthem_parse_error.log
  39. del %_NTPOSTBLD%\luna.mst.parse_error
  40. ren %_NTPOSTBLD%\luna.mst luna.mst.parse_error
  41. )
  42. call ExecuteCmd.cmd "packthem.exe -s %_NTPOSTBLD%\luna.mst"
  43. call ExecuteCmd.cmd "checkfix.exe %_NTPOSTBLD%\luna.mst"
  44. )