Changeset 6706
- Timestamp:
- 2004-02-03T13:49:34+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/makegli.sh
r6670 r6706 1 1 #!/bin/sh 2 glilang= 2 3 3 4 echo 4 echo 'Greenstone Librarian Interface (GLI)' 5 echo 'Copyright (C) 2004, New Zealand Digital Library Project, University Of Waikato' 6 echo 'GLI comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt' 7 echo 'This is free software, and you are welcome to redistribute it' 5 if [ "$glilang" == "ru" ]; then 6 echo "-- Still coming --" 7 else 8 echo 'Greenstone Librarian Interface (GLI)' 9 echo 'Copyright (C) 2004, New Zealand Digital Library Project, University Of Waikato' 10 echo 'GLI comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt' 11 echo 'This is free software, and you are welcome to redistribute it' 12 fi 8 13 echo 9 14 … … 27 32 28 33 # Check that a Javac executable has been found 29 echo "Checking Javac: $javacpath" 34 if [ "$glilang" == "ru" ]; then 35 echo "ðÒÏ×ÅÒËÁ Javac: $javacpath" 36 else 37 echo "Checking Javac: $javacpath" 38 fi 30 39 if [ ! -x "$javacpath" ]; then 31 40 echo 32 echo "Failed to locate an appropriate version of Javac. You must install a" 33 echo "Java Development Kit (version 1.4 or greater) before compiling the" 34 echo "Greenstone Librarian Interface." 41 if [ "$glilang" == "ru" ]; then 42 echo "îÅ ÕÄÁÌÏÓØ ÏÐÒÅÄÅÌÉÔØ ÍÅÓÔÏÎÁÈÏÖÄÅÎÉÅ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÊ ×ÅÒÓÉÉ Javac." 43 echo "÷Ù ÄÏÌÖÎÙ ÉÎÓÔÁÌÌÉÒÏ×ÁÔØ Java Development Kit (×ÅÒÓÉÑ 1.4 ÉÌÉ ×ÙÛÅ)" 44 echo "ÐÒÅÖÄÅ, ÞÅÍ ÇÅÎÅÒÉÒÏ×ÁÔØ ÄÏËÕÍÅÎÔÁÃÉÀ ÄÌÑ ÂÉÂÌÉÏÔÅÞÎÏÇÏ " 45 echo "ÉÎÔÅÒÆÅÊÓÁ Greenstone." 46 else 47 echo "Failed to locate an appropriate version of Javac. You must install a" 48 echo "Java Development Kit (version 1.4 or greater) before compiling the" 49 echo "Greenstone Librarian Interface." 50 fi 35 51 exit 1 36 52 fi … … 43 59 if [ "$javacOK142" = "" ]; then 44 60 echo 45 echo "The version of the Java Development Kit you have installed is too old" 46 echo "to compile the Greenstone Librarian Interface. Please install a new" 47 echo "version of the Java SDK (version 1.4 or newer) and rerun this script." 61 if [ "$glilang" == "ru" ]; then 62 echo "÷ÅÒÓÉÑ Java Development Kit, ËÏÔÏÒÕÀ ÷Ù ÕÓÔÁÎÏ×ÉÌÉ, ÓÌÉÛËÏÍ ÓÔÁÒÁ," 63 echo "ÞÔÏÂÙ ÄÁÔØ ×ÏÚÍÏÖÎÏÓÔØ ËÏÍÐÉÌÉÒÏ×ÁÔØ ÂÉÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone." 64 echo "ðÏÖÁÌÕÊÓÔÁ, ÕÓÔÁÎÏ×ÉÔÅ ÎÏ×ÕÀ ×ÅÒÓÉÀ Java SDK (×ÅÒÓÉÀ 1.4 ÉÌÉ ÂÏÌÅÅ" 65 echo "ÎÏ×ÕÀ) É ÐÅÒÅÕÓÔÁÎÏ×ÉÔÅ ÜÔÏÔ ÓËÒÉÐÔ." 66 else 67 echo "The version of the Java Development Kit you have installed is too old" 68 echo "to compile the Greenstone Librarian Interface. Please install a new" 69 echo "version of the Java SDK (version 1.4 or newer) and rerun this script." 70 fi 48 71 exit 1 49 72 fi … … 56 79 # If a file has been specified at the command-line, just compile that file 57 80 if [ ! "x$*" = "x" ] ; then 58 echo "Compiling $* and dependant classes..." 81 if [ "$glilang" == "ru" ]; then 82 echo "ëÏÍÐÉÌÉÒÏ×ÁÎÉÅ $* É ÚÁ×ÉÓÉÍÙÅ ËÌÁÓÓÙ..." 83 else 84 echo "Compiling $* and dependant classes..." 85 fi 59 86 60 87 $javacpath -deprecation -d classes/ -sourcepath src/ -classpath classes/:lib/apache.jar:lib/calpa.jar:lib/jp.jar:lib/polloxml.jar:lib/qfslib.jar:lib/skinlf.jar:lib/nanoxml.jar $* 61 88 62 echo "Done!" 89 if [ "$glilang" == "ru" ]; then 90 echo "÷ÙÐÏÌÎÅÎÏ!" 91 else 92 echo "Done!" 93 fi 63 94 exit 0 64 95 fi 65 96 66 97 # Otherwise compile the lot... 67 echo "Compiling the Greenstone Librarian Interface..." 98 if [ "$glilang" == "ru" ]; then 99 echo "ëÏÍÐÉÌÉÒÏ×ÁÎÉÅ ÂÉÂÌÉÏÔÅÞÎÏÇÏ ÉÎÔÅÒÆÅÊÓÁ Greenstone..." 100 else 101 echo "Compiling the Greenstone Librarian Interface..." 102 fi 68 103 69 104 $javacpath -deprecation -d classes/ -sourcepath src/ -classpath classes/:lib/apache.jar:lib/calpa.jar:lib/jp.jar:lib/polloxml.jar:lib/qfslib.jar:lib/skinlf.jar:lib/nanoxml.jar src/org/greenstone/gatherer/*.java … … 85 120 $javacpath -deprecation -d classes/ -sourcepath src/ -classpath classes/:lib/apache.jar:lib/calpa.jar:lib/jp.jar:lib/polloxml.jar:lib/qfslib.jar:lib/skinlf.jar:lib/nanoxml.jar src/org/greenstone/gatherer/valuetree/*.java 86 121 87 echo "Done!" 122 if [ "$glilang" == "ru" ]; then 123 echo "÷ÙÐÏÌÎÅÎÏ!" 124 else 125 echo "Done!" 126 fi
Note:
See TracChangeset
for help on using the changeset viewer.