Skip to content

Commit cdbb4bf

Browse files
authored
Merge pull request scribble#115 from rhu1/rhu1-research
Updated scribblec.sh with new module locations.
2 parents acd44fa + b3e644f commit cdbb4bf

1 file changed

Lines changed: 23 additions & 13 deletions

File tree

scribble-dist/src/main/resources/scribblec.sh

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,29 @@
1414
#
1515

1616

17-
# Directory containing Scribble jars
18-
LIB=lib
17+
##
18+
# Usage notes
19+
#
20+
# - ANTLR:
21+
# Assuming $DIR is the scribble-java root directory, set $ANTLR (below) to
22+
# the location of the ANTLR runtime jar or put the jar in: $DIR/$LIB
23+
# (This script looks for ANTLR in those locations.)
24+
#
25+
1926

20-
# antlr 3.2 location (if no lib jar)
27+
# ANTLR 3 runtime location (if no lib jar)
2128
ANTLR=
22-
# e.g. '/cygdrive/c/Users/[User]/.m2/repository/org/antlr/antlr-runtime/3.2/antlr-runtime-3.2.jar'
29+
# e.g. '/cygdrive/c/Users/[User]/.m2/repository/org/antlr/antlr-runtime/3.4/antlr-runtime-3.4.jar'
30+
# (i.e., the maven install location)
31+
32+
DIR=`dirname "$0"` # Default
33+
#DIR=`dirname "$0"`/.. # (Cygwin: e.g., script is in $DIR/bin)
34+
35+
#PRG=`basename "$0"`
36+
37+
# Directory containing Scribble jars
38+
LIB=lib
2339

24-
PRG=`basename "$0"`
25-
DIR=`dirname "$0"` # Non Cygwin..
26-
#DIR=`dirname "$0"`/.. # Cygwin
27-
#BASEDIR=$(dirname $0)
2840

2941
usage() {
3042
echo Usage: 'scribblec.sh [option]... <SCRFILE> [option]...'
@@ -88,18 +100,16 @@ fixpath() {
88100

89101
ARGS=
90102

91-
CLASSPATH=$DIR'/modules/cli/target/classes/'
92-
CLASSPATH=$CLASSPATH':'$DIR'/modules/core/target/classes'
93-
CLASSPATH=$CLASSPATH':'$DIR'/modules/parser/target/classes'
94-
CLASSPATH=$CLASSPATH':'$DIR'/modules/f17/target/classes'
103+
CLASSPATH=$DIR'/scribble-cli/target/classes/'
104+
CLASSPATH=$CLASSPATH':'$DIR'/scribble-core/target/classes'
105+
CLASSPATH=$CLASSPATH':'$DIR'/scribble-parser/target/classes'
95106
CLASSPATH=$CLASSPATH':'$ANTLR
96107
CLASSPATH=$CLASSPATH':'$DIR'/'$LIB'/antlr.jar'
97108
CLASSPATH=$CLASSPATH':'$DIR'/'$LIB'/antlr-runtime.jar'
98109
CLASSPATH=$CLASSPATH':'$DIR'/'$LIB'/commons-io.jar'
99110
CLASSPATH=$CLASSPATH':'$DIR'/'$LIB'/scribble-cli.jar'
100111
CLASSPATH=$CLASSPATH':'$DIR'/'$LIB'/scribble-core.jar'
101112
CLASSPATH=$CLASSPATH':'$DIR'/'$LIB'/scribble-parser.jar'
102-
CLASSPATH=$CLASSPATH':'$DIR'/'$LIB'/scribble-f17.jar'
103113
CLASSPATH=$CLASSPATH':'$DIR'/'$LIB'/stringtemplate.jar'
104114
CLASSPATH="'"`fixpath "$CLASSPATH"`"'"
105115

0 commit comments

Comments
 (0)