prebuildNW.bat 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. @echo off
  2. if not "%NovellLibC%" == "" goto CheckNDK
  3. set NovellLibC=\novell\ndk\libc
  4. @echo Could not find the NovellLibC environment variable
  5. @echo Setting NovellLibC = %NovellLibC%
  6. @echo ---------------------
  7. :CheckNDK
  8. if exist %NovellLibC%\include\netware.h goto NDKOK
  9. @echo The path to the NDK "%NovellLibC%" is invalid.
  10. @echo Please set then NovellLibC environment variable to the location of the NDK
  11. @echo ---------------------
  12. goto Done
  13. :NDKOK
  14. @echo # As part of the pre-build process, the utility GenURI.NLM
  15. @echo # (Gen URI Delims) must be built, copied to a NetWare server
  16. @echo # and run using the following command:
  17. @echo #
  18. @echo # "sys:\genuri >sys:\uri_delims.h"
  19. @echo #
  20. @echo # The file "sys:\uri_delims.h" must then be copied to
  21. @echo # "apr-util\uri\uri_delims.h" on the build machine.
  22. @echo Fixing up the APR headers
  23. copy ..\include\fspr.hnw ..\include\fspr.h
  24. @echo Fixing up the APR-Util headers
  25. copy ..\..\apr-util\include\apu.hnw ..\..\apr-util\include\apu.h
  26. copy ..\..\apr-util\include\apu_want.hnw ..\..\apr-util\include\apu_want.h
  27. copy ..\..\apr-util\include\apr_ldap.hnw ..\..\apr-util\include\apr_ldap.h
  28. copy ..\..\apr-util\include\private\apu_config.hw ..\..\apr-util\include\private\apu_config.h
  29. copy ..\..\apr-util\xml\expat\lib\expat.h.in ..\..\apr-util\xml\expat\lib\expat.h
  30. copy ..\..\apr-util\xml\expat\lib\config.hnw ..\..\apr-util\xml\expat\lib\config.h
  31. copy ..\..\apr-util\include\private\apu_select_dbm.hw ..\..\apr-util\include\private\apu_select_dbm.h
  32. @echo Fixing up the pcre headers
  33. copy ..\..\pcre\config.hw ..\..\pcre\config.h
  34. copy ..\..\pcre\pcre.hw ..\..\pcre\pcre.h
  35. @echo Generating the import list...
  36. set MWCIncludes=..\include;..\include\arch\netware;..\include\arch\unix;..\..\apr-util\include;+%NovellLibC%
  37. mwccnlm -P nw_export.inc -d NETWARE -EP
  38. awk -f make_nw_export.awk nw_export.i |sort >..\aprlib.imp
  39. :Done
  40. pause