source: trunk/indexers/mgpp/java/org/greenstone/mgpp/winMake.bat@ 7868

Last change on this file since 7868 was 7868, checked in by mdewsnip, 20 years ago

Added an install command for Greenstone 3.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1@echo off
2
3set MGPPHOME=..\..\..\..
4
5rem ---- Where to put class files ----
6set JAVACLASSDIR=classes
7
8rem ---- Name and location of java programs ----
9set JAVAC=%JAVA_HOME%\bin\javac
10set JAVAH=%JAVA_HOME%\bin\javah
11set JAVA=%JAVA_HOME%\bin\java
12set JAVADOC=%JAVA_HOME%\bin\javadoc
13set JAR=%JAVA_HOME%\bin\jar
14
15set JAVACOPTIONS= -deprecation -g -O
16
17
18if ""%1"" == """" goto compile
19if ""%1"" == ""compile"" goto compile
20if ""%1"" == ""install"" goto install
21if ""%1"" == ""clean"" goto clean
22
23:unknown
24 echo Error: Unrecognized argument %1.
25 goto done
26
27:compile
28 if not exist %JAVACLASSDIR% mkdir %JAVACLASSDIR%
29 echo Compiling...
30 %JAVAC% -d %JAVACLASSDIR% %JAVACOPTIONS% *.java
31 %JAVAH% -classpath %JAVACLASSDIR% -d %MGPPHOME%\jni org.greenstone.mgpp.MGPPWrapper
32 %JAR% cf mgpp.jar -C %JAVACLASSDIR% org
33 goto done
34
35:install
36 copy mgpp.jar %GSDL3HOME%\lib\java
37 goto done
38
39:clean
40 echo Cleaning up...
41 if exist %JAVACLASSDIR% rmdir /S /Q %JAVACLASSDIR%
42 if exist mgpp.jar del mgpp.jar
43 if exist %MGPPHOME%\jni\org_greenstone_mgpp_MGPPWrapper.h del %MGPPHOME%\jni\org_greenstone_mgpp_MGPPWrapper.h
44 goto done
45
46:done
Note: See TracBrowser for help on using the repository browser.