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.

50 lines
1.5 KiB

  1. @REM -----------------------------------------------------------------
  2. @REM
  3. @REM signtheme.cmd - ScottHan
  4. @REM Add the Visual Style signature which will allow us to release
  5. @REM visual styles later.
  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. usage: signtheme.cmd [-l:lang]
  21. Signs theme files
  22. USAGE
  23. parseargs('?' => \&Usage);
  24. # *** TEMPLATE CODE ***
  25. $ENV{"_CPCMAGIC"}++;exit(system($0)>>8);
  26. __END__
  27. @:CPCBegin
  28. @set _CPCMAGIC=
  29. @setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
  30. @if not defined DEBUG echo off
  31. @REM *** 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. )