-
Notifications
You must be signed in to change notification settings - Fork 1
/
marcmods2rdf.sh
executable file
·63 lines (48 loc) · 1.45 KB
/
marcmods2rdf.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/sh
#
# Configuration variables
#
# JAVA_HOME
# Home of Java installation.
#
# JAVA_OPTIONS
# Extra options to pass to the JVM
#
# ----- Verify and Set Required Environment Variables -------------------------
if [ "$JAVA_HOME" = "" ] ; then
echo You must set JAVA_HOME to point at your Java Development Kit installation
exit 1
fi
if [ "$JAVA_OPTIONS" = "" ] ; then
JAVA_OPTIONS='-Xms32M -Xmx512M -Djava.awt.headless=true'
fi
# ----- Set mode-specific variables
case "$JAVA_MODE" in
debug)
JAVA_X_ARGS='-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n'
;;
profile)
JAVA_X_ARGS='-Xrunhprof:heap=all,cpu=samples,thread=y,depth=3'
;;
shark)
JAVA_X_ARGS='-Xrunshark'
;;
yourkit)
JAVA_X_ARGS='-agentlib:yjpagent'
;;
esac
# ----- Set platform specific variables ---------------------------------------
PATHSEP=":";
case "`uname`" in
CYGWIN*) PATHSEP=";" ;;
esac
# ----- Set Local Variables ( used to minimize cut/paste) ---------------------
JAVA="$JAVA_HOME/bin/java"
PARSER="-Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser"
LOADER="Loader"
LOADER_LIB="./tools/loader/classes"
MAIN="-Dloader.main.class=edu.mit.simile.rdfizer.marcmods.Main"
LIBRARIES="-Dloader.jar.repositories=target"
# ----- Do the action ----------------------------------------------------------
$JAVA $JAVA_OPTIONS $JAVA_X_ARGS -cp $LOADER_LIB $LIBRARIES $PARSER $MAIN $LOADER $*
exit 0