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