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.

62 lines
1.9 KiB

  1. @echo off
  2. REM ------------------------------------------------------------------
  3. REM
  4. REM wow64csp.cmd
  5. REM Copy PRS signed Cryptographic Service Provider dll's into
  6. REM the 64-bit build.
  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. wow64csp
  22. Copy PRS signed Cryptographic Service Provider dll's into the 64-bit build.
  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 Bail if your not on a 64 bit machine
  33. if /i "%_BuildArch%" neq "ia64" (
  34. if /i "%_BuildArch%" neq "amd64" (
  35. call logmsg.cmd "Not Win64, exiting."
  36. goto :End
  37. )
  38. )
  39. REM Set the Destination directory
  40. set DestDir=!_NTPostBld!\wowbins
  41. set UnCompDestDir=!_NTPostBld!\wowbins_uncomp
  42. call ExecuteCmd.cmd "del %DestDir%\wrsaenh.dl_"
  43. call ExecuteCmd.cmd "del %DestDir%\wdssenh.dl_"
  44. call ExecuteCmd.cmd "del %DestDir%\wslbcsp.dl_"
  45. call ExecuteCmd.cmd "del %DestDir%\wsccbase.dl_"
  46. call ExecuteCmd.cmd "del %DestDir%\wgpkcsp.dl_"
  47. call ExecuteCmd.cmd "compress.exe -zx21 -s %UnCompDestDir%\wrsaenh.dll %DestDir%\wrsaenh.dl_"
  48. call ExecuteCmd.cmd "compress.exe -zx21 -s %UnCompDestDir%\wdssenh.dll %DestDir%\wdssenh.dl_"
  49. call ExecuteCmd.cmd "compress.exe -zx21 -s %UnCompDestDir%\wslbcsp.dll %DestDir%\wslbcsp.dl_"
  50. call ExecuteCmd.cmd "compress.exe -zx21 -s %UnCompDestDir%\wsccbase.dll %DestDir%\wsccbase.dl_"
  51. call ExecuteCmd.cmd "compress.exe -zx21 -s %UnCompDestDir%\wgpkcsp.dll %DestDir%\wgpkcsp.dl_"
  52. :END