Windows NT 4.0 source code leak
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.

57 lines
1.7 KiB

4 years ago
  1. @echo off
  2. setlocal
  3. rem
  4. rem This file is a support script that copies files from the NT build tree
  5. rem to the IPG release tree. This script is invoked by the CPIPG.CMD script
  6. rem file that is produced by the -G switch to BUILD.EXE
  7. rem
  8. rem Usage: call cpipgaux.cmd BuiltTreePath ObjSubDirPath ImageFileName {FilesToCopy...}
  9. rem
  10. rem where:
  11. rem BuildTreePath is the path to the directory that built the FilesToCopy
  12. rem
  13. rem ObjSubDirPath is the subdirectory of BuildTreePath that contains the object files
  14. rem
  15. rem ImageFileName is the name of the image file that contains resources.
  16. rem
  17. rem FilesToCopy is a list of one or more files that need to be copied to the
  18. rem IPG release tree. This list will include the .res file and all
  19. rem supporting .rc, .dlg, and .mc files.
  20. rem
  21. rem This command script uses the following environment variables to control its work:
  22. rem
  23. rem _NTIPGTREE points to the root of the enlistment in \\INTLNT\NT USA project
  24. rem
  25. if "%_NTIPGDRIVE%" == "" goto badenv1
  26. if "%_NTIPGTREE%" == "" goto badenv2
  27. %_NTIPGDRIVE%
  28. cd %_NTIPGTREE%
  29. if EXIST %3\slm.ini goto gotdir
  30. md %3 >nul 2>nul
  31. echo Making new component - %3
  32. :gotdir
  33. cd %3
  34. set _srcdir=%1
  35. echo Copying files for %3
  36. :dofiles
  37. if "%4" == "" goto gotfiles
  38. copy %4 >nul 2>nul
  39. if NOT ERRORLEVEL 1 goto nextfile
  40. copy %_NTDRIVE%%4 >nul 2>nul
  41. if NOT ERRORLEVEL 1 goto nextfile
  42. copy %_srcdir%\%4 >nul 2>nul
  43. if NOT ERRORLEVEL 1 goto nextfile
  44. echo Unable to copy %4 from %_srcdir%
  45. :nextfile
  46. shift
  47. goto dofiles
  48. :gotfiles
  49. goto done
  50. :badenv1
  51. echo _NTIPGDRIVE environment variable is not defined.
  52. goto done
  53. :badenv2
  54. echo _NTIPGTREE environment variable is not defined.
  55. goto done
  56. :done
  57. endlocal