source: trunk/gsdl3/packages/javagdbm/java/winMake.bat@ 10737

Last change on this file since 10737 was 10737, checked in by kjdon, 19 years ago

Java Wrapper for GDBM, from Martin Pool. Original website gone, so added it all in here. I have modified the Makefiles to work in greenstone, and on macs, and added windows makefiles

  • 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 GDBMJAVAHOME=..
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% au\com\pharos\*\*.java
31 %JAVAH% -classpath %JAVACLASSDIR% -c %GDBMJAVAHOME%\jni\GdbmFile.h au.com.pharos.gdbm.GdbmFile
32 %JAR% cf %JAVAGDBMHOME%\javagdbm.jar -C %JAVACLASSDIR% au
33 goto done
34
35:install
36 goto done
37
38:clean
39 echo Cleaning up...
40 if exist %JAVACLASSDIR% rmdir /S /Q %JAVACLASSDIR%
41 if exist %JAVAGDBMHOME%\javagdbm.jar del %JAVAGDBMHOME%\javagdbm.jar
42 if exist %GDBMJAVAHOME%\jni\GdbmFile.h del %GDBMJAVAHOME%\jni\GdbmFile.h
43 goto done
44
45:done
Note: See TracBrowser for help on using the repository browser.