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.

116 lines
2.7 KiB

  1. @echo off
  2. REM -------------------------------------------------------------------------
  3. REM w95ipp.cmd - Generates and copies Internet Printing Client binaries for Win95,
  4. REM to be CABGEN
  5. REM
  6. REM -------------------------------------------------------------------------
  7. REM Do not replace with "goto %1" we may add additional options
  8. if /i "%1"=="PREREBASE" goto PREREBASE
  9. if /i "%1"=="NEWVER" goto NEWVER
  10. if /i "%1"=="CONGEAL" goto CONGEAL
  11. if /i "%1"=="CABGEN" goto CABGEN
  12. if /i "%1"=="POSTCOMPRESS" goto POSTCOMPRESS
  13. goto USAGE
  14. :NEWVER
  15. REM Add any newver processing here
  16. goto :EOF
  17. :PREREBASE
  18. REM Add any congeal processing to occur before rebasing here
  19. goto :EOF
  20. :CONGEAL
  21. REM Add any congeal processing here
  22. goto :EOF
  23. :CABGEN
  24. REM ---------------------------------------------------------------------------
  25. REM
  26. REM All our processing happens here at the end of the build process when
  27. REM binaries are in the release servers. We need to propagate win9x inetpp.dll
  28. REM to the win9xipp.cli directory. This happens only on x86.
  29. REM
  30. REM
  31. REM Only on x86
  32. REM
  33. if /i NOT "%_BuildArch%" == "x86" goto :EOF
  34. set source=%_NTx86TREE%\win95
  35. set target=%_NTx86TREE%\clients\win9xipp.cli
  36. if exist %target% rd /s /q %target%
  37. mkdir %target%
  38. if NOT exist %target% echo Cannot create directory %target%
  39. echo.
  40. echo Building Windows9x Internet Printing Client binaries
  41. cd /d %source%
  42. REM
  43. REM Munge the path so we use the correct wextract.exe to build the package with...
  44. REM NOTE: We *want* to use the one we just built (and for Intl localized)!
  45. REM
  46. set _NEW_PATH_TO_PREPEND=%RazzleToolPath%\%PROCESSOR_ARCHITECTURE%\loc\%LANG%
  47. set _OLD_PATH_BEFORE_PREPENDING=%PATH%
  48. set PATH=%_NEW_PATH_TO_PREPEND%;%PATH%
  49. iexpress /M /Q /N wpnpins.sed
  50. REM
  51. REM Return the path to what it was before...
  52. REM
  53. set PATH=%_OLD_PATH_BEFORE_PREPENDING%
  54. REM
  55. REM Propagate the binary
  56. REM
  57. copy %source%\wpnpins.exe %target% > nul
  58. REM
  59. REM Propagate symbols files
  60. REM
  61. echo Copying Windows9x Internet Printing Client Symbols to release point
  62. xcopy /dck %source%\symbols\retail\exe\wpnpinst.* %target%\symbols\ > nul
  63. xcopy /dck %source%\symbols\retail\exe\webptprn.* %target%\symbols\ > nul
  64. xcopy /dck %source%\symbols\dump\wpnpin16.* %target%\symbols\ > nul
  65. xcopy /dck %source%\symbols\retail\dll\wpnpin32.* %target%\symbols\ > nul
  66. REM ---------------------------------------------------------------------------
  67. :POSTCOMPRESS
  68. REM Add any POSTCOMPRESS processing here
  69. goto :EOF
  70. :USAGE
  71. echo.
  72. echo %0: called by bldrules-capable script (like newver or congeal).
  73. echo.
  74. echo You must specify one of these options on the command-line:
  75. echo [prerebase] [congeal] [newver] [cabgen] [POSTCOMPRESS]
  76. echo.
  77. echo.
  78. :fini