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.

44 lines
1.2 KiB

  1. @echo off
  2. setlocal
  3. REM
  4. REM This batch file builds pbainst.exe, the Phone Book Administrator install package
  5. REM
  6. REM
  7. REM Make sure we're in the right place and have access to tools
  8. REM
  9. if "%SDCONFIG%" == "" echo This must be run from a Razzle window (need SD.exe)&goto :eof
  10. if not exist ".\sources0\pbserver.mdb" echo This must be run from the rras\cps\pba\buildit directory&goto :eof
  11. if not exist "..\pbainst.exe" echo This must be run from the rras\cps\pba\buildit directory&goto :eof
  12. REM
  13. REM check out the .MDB files, if these are marked readonly when iexpress runs, they
  14. REM end up being readonly on the target system as well, which causes problems.
  15. REM
  16. echo Checking out pbserver.mdb and empty_pb.mdb so that these aren't readonly ...
  17. sd edit sources0\pbserver.mdb sources1\empty_pb.mdb
  18. REM
  19. REM generate pbainst.exe
  20. REM
  21. echo Generating pbainst.exe ...
  22. Iexpress.exe /n pbainst.sed
  23. echo Checking out ..\pbainst.exe and copying over new version ...
  24. sd edit ..\pbainst.exe
  25. copy .\pbainst.exe ..\pbainst.exe
  26. echo Done.
  27. echo.
  28. REM
  29. REM Cleanup
  30. REM
  31. echo If sources0\pbserver.mdb and/or sources1\empty_pb.mdb were not originally checked out by you, please revert them now.
  32. echo.