- Timestamp:
- 2009-09-14T12:30:23+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/makejar.sh
r18635 r20594 41 41 echo "Assuming that Java code is freshly compiled..." 42 42 43 # All the GLI class files and supporting libraries are put into the "jar" directory 44 if [ ! -d jar ]; then 45 mkdir jar 43 rm -rf jar 44 mkdir jar 46 45 47 cd lib 48 jar xf apache.jar com org 49 jar xf qfslib.jar de 50 51 mv com de org ../jar/. 52 cd .. 53 fi 46 # GLI class files and supporting libraries 47 cd lib 48 jar xf apache.jar com org 49 jar xf qfslib.jar de 50 mv com de org ../jar/. 51 cd .. 54 52 55 53 # Copy the latest version of the GLI classes into the jar directory … … 58 56 59 57 # Some of the things to go into the JAR file are optional, and may not exist 60 optional=61 58 if [ -f collect.zip ]; then 62 optional="$optional collect.zip"59 cp collect.zip jar 63 60 fi 64 61 65 62 # Recreate the metadata.zip file (contains the GLI metadata directory) 66 63 rm -f metadata.zip 67 zip -r metadata.zip metadata >/dev/null64 zip -r jar/metadata.zip metadata >/dev/null 68 65 69 # get the list of dictionary files 70 dictionary_files= 66 # Dictionary files 71 67 cd classes 72 for dict_file in dictionary*.properties 73 dictionary_files="$dictionary_files -C classes $dict_file" 68 for dict_file in dictionary*.properties; do 69 cp $dict_file jar 74 70 done 75 71 cd .. 76 72 73 # Other required directories and files 74 cp -r 'help' jar 75 cp -r 'classes/images' jar 76 cp -r 'classes/xml' jar 77 cp 'classes/feedback.properties' jar 78 cp '.java.policy' jar 79 80 # Clean .svn dirs 81 find jar -name '.svn' -type d -exec rm -rf {} \; 82 77 83 # Jar everything up 78 jar cf GLI.jar .java.policy metadata.zip $optional help \ 79 $dictionary_files \ 80 -C classes feedback.properties -C classes images -C classes xml \ 81 -C jar com -C jar de -C jar org 82 83 # Tidy up 84 rm -f metadata.zip 84 cd jar 85 jar cf ../GLI.jar * 86 cd .. 85 87 86 88 # Generate the GLIServer.jar file for remote building 87 jar cf GLIServer.jar -C classesorg/greenstone/gatherer/remote89 jar cf GLIServer.jar -C jar org/greenstone/gatherer/remote 88 90 89 91 # ---- Make signed JAR file for the applet, if desired ----
Note:
See TracChangeset
for help on using the changeset viewer.