forked from bitovi/documentjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoc
More file actions
executable file
·32 lines (22 loc) · 644 Bytes
/
Copy pathdoc
File metadata and controls
executable file
·32 lines (22 loc) · 644 Bytes
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
#!/bin/sh
# This file is a batch script that invokes loader
# ex: documentjs/doc cookbook/cookbook.html
# Sets ..
# Absolute path to this script. /home/user/bin/foo.sh
# Absolute path this script is in. /home/user/bin
DIRNAME=`dirname "$0"`
BASENAME=`basename "$0"`
cd "${PWD}/${DIRNAME}"
DIR_OF_SCRIPT=`pwd -P`
SCRIPT="${DIR_OF_SCRIPT}/${BASENAME}"
DOCUMENTJS_ROOT=`dirname "$SCRIPT"`/
BASE=$DOCUMENTJS_ROOT
cd "$BASE"..
JMVC_ROOT="$PWD"
# classpath
CP="${JMVC_ROOT}/steal/rhino/js.jar"
# load the run.js file
LOADPATH="${BASE}/scripts/run.js"
LOADER="${JMVC_ROOT}/steal/rhino/loader"
# call the loader
. "$LOADER" $1 $2 $3 $4 $5 $6