source: indexers/trunk/winMake.bat@ 20889

Last change on this file since 20889 was 20861, checked in by ak19, 15 years ago

Renames the recently committed iconv.h.win file to iconv.h on Windows (iconv.h shouldn't be present on Linux as it can mess up static linking to libiconv.

  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
RevLine 
[13728]1@echo off
2
3set MAKE=nmake
4set MAKE_OPTIONS=/f
5
[19524]6if "%DEBUG%" == "" (
7 set MAKE_VARS=DEBUG=0
8) else (
9 set MAKE_VARS=DEBUG=%DEBUG%
10)
11
[13728]12if ""%1"" == """" goto all
[13755]13if ""%1"" == ""all"" goto go
[13728]14if ""%1"" == ""install"" goto go
[13755]15if ""%1"" == ""clean"" goto clean
[13728]16
17:unknown
18 echo Error: Unrecognized argument %1.
19 goto done
20
[13755]21:clean
22 del bin\*
[13840]23
24:go
[13755]25 if ""%2"" == ""javaonly"" goto java
26 if ""%2"" == ""nojava"" goto nojava
[16064]27 if ""%2"" == ""gs2"" goto gs2
[13755]28
[13728]29:all
[16907]30 if NOT EXIST "bin" mkdir bin
31
[18310]32 cd packages\windows\iconv
33 if NOT EXIST "iconv" unzip iconv.zip
34 cd iconv
[19524]35 %MAKE% %MAKE_OPTIONS% Makefile.msvc %MAKE_VARS% NO_NLS=1
[16907]36 cd ..\..\..\..
[16903]37
[13755]38 cd packages\unac
[20861]39 if NOT EXIST "iconv.h" if EXIST "iconv.h.win" RENAME "%CD%\iconv.h.win" iconv.h
[19524]40 %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
[13755]41 cd ..\..
[13728]42
43 cd mg
[19524]44 call winMake.bat %1
[13728]45 cd ..
46
47 cd mgpp
48 call winMake.bat %1
49 cd ..
50
51 cd lucene-gs
52 call winMake.bat %1
[13750]53 cd ..
[19524]54
55 if ""%1"" == ""clean"" goto clean2
[13728]56 goto done
57
[19524]58:: Need another clean because a pre-all clean command sent to iconv regenerates some lib
59:: and object files. So we delete these after it's finished processing the clean command
60:clean2
61 for %%I in (lib srclib libcharset\lib) do if exist packages\windows\iconv\iconv\%%I\^*.obj del packages\windows\iconv\iconv\%%I\*.obj;
62 for %%I in (lib srclib libcharset\lib) do if exist packages\windows\iconv\iconv\%%I\^*.lib del packages\windows\iconv\iconv\%%I\*.lib;
63
[13728]64:java
65 cd mg
66 call winMake.bat %1 javaonly
67 cd ..
68
69 cd mgpp
70 call winMake.bat %1 javaonly
71 cd ..
72
73 cd lucene-gs
74 call winMake.bat %1
[13750]75 cd ..
[13728]76 goto done
77
78:nojava
[16907]79 cd packages\windows\iconv\iconv
[19524]80 %MAKE% %MAKE_OPTIONS% Makefile.msvc %MAKE_VARS% NO_NLS=1
[16907]81 cd ..\..\..\..
82
[13755]83 cd packages\unac
[20861]84 if NOT EXIST "iconv.h" if EXIST "iconv.h.win" RENAME "%CD%\iconv.h.win" iconv.h
[19524]85 %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
[13755]86 cd ..\..
[13728]87
88 cd mg
89 call winMake.bat %1 nojava
90 cd ..
91
92 cd mgpp
93 call winMake.bat %1 nojava
94 cd ..
95 goto done
[13840]96
[16064]97:gs2
98 if NOT EXIST "bin" mkdir bin
[16907]99
100 cd packages\windows\iconv\iconv
[19524]101 %MAKE% %MAKE_OPTIONS% Makefile.msvc %MAKE_VARS% NO_NLS=1
[16907]102 cd ..\..\..\..
103
[16064]104 cd packages\unac
[20861]105 if NOT EXIST "iconv.h" if EXIST "iconv.h.win" RENAME "%CD%\iconv.h.win" iconv.h
[19524]106 %MAKE% %MAKE_OPTIONS% win32.mak %1 %MAKE_VARS%
[16064]107 cd ..\..
108
109 cd mg
110 call winMake.bat %1 nojava
111 cd ..
112
113 cd mgpp
114 call winMake.bat %1 nojava
115 cd ..
116
117 cd lucene-gs
118 call winMake.bat %1
119 cd ..
120 goto done
121
[13728]122:done
Note: See TracBrowser for help on using the repository browser.