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.

73 lines
2.1 KiB

  1. @echo off
  2. setlocal
  3. rem
  4. rem Batch file for building downloadable releases of samples for news server.
  5. rem
  6. rem
  7. rem Temporary
  8. rem
  9. set OldPath=%Path%
  10. set Path=%_ntdrive%%_ntroot%\private\indexsrv\web\setup\IExpress\%PROCESSOR_ARCHITECTURE%;%PATH%
  11. rem
  12. rem Copy extra files
  13. rem
  14. :DoSetup
  15. rem xcopy %_ntdrive%%_ntroot%\private\indexsrv\web\html\newsvr\readme.txt %BINARIES%\Query\newsvr /d
  16. rem xcopy %_ntdrive%%_ntroot%\private\indexsrv\web\html\newsvr\bullet7.gif %BINARIES%\Query\newsvr /d
  17. rem xcopy %_ntdrive%%_ntroot%\private\indexsrv\web\html\newsvr\newsall.cmd %BINARIES%\Query\newsvr /d
  18. rem xcopy %BINARIES%\query\cistp.hlp %BINARIES%\Query\newsvr /d
  19. rem xcopy %BINARIES%\query\cistp.dll %BINARIES%\Query\newsvr /d
  20. rem xcopy %BINARIES%\query\license.txt %BINARIES%\Query\newsvr /d
  21. rem
  22. rem Build the package
  23. rem
  24. :DoCopy
  25. echo Building news server sample files
  26. set _return=Success
  27. goto SingleCopy
  28. :Success
  29. echo Done!
  30. goto end
  31. :SingleCopy
  32. rem del %BINARIES%\Query\newsvr\newsall.exe 1>nul 2>nul
  33. rem del %BINARIES%\Query\newsvr\~Cabpack.cab 1>nul 2>nul
  34. del %BINARIES%\Query\newsall.exe 1>nul 2>nul
  35. del %BINARIES%\Query\~Cabpack.cab 1>nul 2>nul
  36. echo [NewOptions] > %TEMP%\Override.txt
  37. echo Strings="NewStrings" >> %TEMP%\Override.txt
  38. echo [NewStrings] >> %TEMP%\Override.txt
  39. rem echo DisplayLicense="%_ntdrive%%_ntroot%\private\indexsrv\web\html\newsvr\license.txt" >> %TEMP%\Override.txt
  40. echo TargetName="%BINARIES%\query\newsall.exe" >> %TEMP%\Override.txt
  41. echo SAMPLEDIR="%_ntdrive%%_ntroot%\private\indexsrv\web\html\newsvr\" >> %TEMP%\Override.txt
  42. echo MAINDIR="%_ntdrive%%_ntroot%\private\indexsrv\web\html\newsvr\" >> %TEMP%\Override.txt
  43. echo DLLDIR=%BINARIES%\Query\ >> %TEMP%\Override.txt
  44. IExpress /N Base.cdf /O:%TEMP%\Override.txt,NewOptions
  45. goto %_return%
  46. :OptionError
  47. echo ERROR: Invalid option.
  48. echo Usage: BuildDL
  49. goto end
  50. :end
  51. rem
  52. rem Temporary
  53. rem
  54. set path=%OldPath%
  55. del %BINARIES%\Query\newsvr\newsall.cmd 1>nul 2>nul
  56. del %BINARIES%\Query\newsvr\~Cabpack.cab 1>nul 2>nul
  57. popd