Changeset 8179


Ignore:
Timestamp:
2004-09-29T13:00:51+12:00 (20 years ago)
Author:
mdewsnip
Message:

Some of the things to go into the JAR file are optional. Only try to put them in if they exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/makejar.sh

    r8178 r8179  
    4444
    4545  cd lib
    46   jar xvf activation.jar com javax
    47   jar xvf apache.jar com org
    48   jar xvf jp.jar jp
    49   jar xvf mail.jar com javax
    50   jar xvf qfslib.jar de
     46  jar xf activation.jar com javax
     47  jar xf apache.jar com org
     48  jar xf jp.jar jp
     49  jar xf mail.jar com javax
     50  jar xf qfslib.jar de
    5151
    5252  mv com de javax jp org ../jar/.
     
    5858cp -r classes/org/greenstone jar/org
    5959
     60# Some of the things to go into the JAR file are optional, and may not exist
     61optional=
     62if [ -f collect.zip ]; then
     63    optional="$optional collect.zip"
     64fi
     65if [ -f classifiers.dat ]; then
     66    optional="$optional classifiers.dat"
     67fi
     68if [ -f plugins.dat ]; then
     69    optional="$optional plugins.dat"
     70fi
     71 
    6072# Jar everything up
    61 jar cf GLI.jar collect.zip \
    62     .java.policy plugins.dat classifiers.dat help \
     73jar cf GLI.jar .java.policy $optional help \
    6374    -C classes dictionary.properties -C classes dictionary_es.properties \
    6475    -C classes dictionary_fr.properties -C classes dictionary_ru.properties \
Note: See TracChangeset for help on using the changeset viewer.