-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfits.sh
45 lines (36 loc) · 1.06 KB
/
fits.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
#FITS_HOME=`dirname "$0"`
FITS_HOME=`echo "$0" | sed 's,/[^/]*$,,'`
export FITS_HOME
# concatenate args and use eval/exec to preserve spaces in paths, options and args
args=""
for arg in "$@" ; do
args="$args \"$arg\""
done
JCPATH=${FITS_HOME}/lib
# Add on extra jar files to APPCLASSPATH
for i in "$JCPATH"/*.jar; do
APPCLASSPATH="$APPCLASSPATH":"$i"
done
#JCPATH=${FITS_HOME}/lib/droid
# Add on extra jar files to APPCLASSPATH
#for i in "$JCPATH"/*.jar; do
# APPCLASSPATH="$APPCLASSPATH":"$i"
#done
#JCPATH=${FITS_HOME}/lib/jhove
# Add on extra jar files to APPCLASSPATH
#for i in "$JCPATH"/*.jar; do
# APPCLASSPATH="$APPCLASSPATH":"$i"
#done
#JCPATH=${FITS_HOME}/lib/nzmetool
# Add on extra jar files to APPCLASSPATH
#for i in "$JCPATH"/*.jar; do
# APPCLASSPATH="$APPCLASSPATH":"$i"
#done
#JCPATH=${FITS_HOME}/lib/nzmetool/adapters
# Add on extra jar files to APPCLASSPATH
#for i in "$JCPATH"/*.jar; do
# APPCLASSPATH="$APPCLASSPATH":"$i"
#done
cmd="java -classpath \"$APPCLASSPATH:$FITS_HOME/xml/nlnz\" edu.harvard.hul.ois.fits.Fits $args"
eval "exec $cmd"