forked from bitovi/documentjs
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoc
More file actions
Latest commit
executable file
·28 lines (19 loc) · 584 Bytes
/
Copy pathdoc
File metadata and controls
executable file
·28 lines (19 loc) · 584 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
#!/bin/sh
# This file is a batch script that invokes loader
# ex: documentjs/doc cookbook/cookbook.html
# Absolute path to this script. /home/user/bin/foo.sh
TARGET_FILE=$0
cd`dirname $TARGET_FILE`
TARGET_FILE=`basename $TARGET_FILE`
PHYS_DIR=`pwd -P`
SCRIPT=$PHYS_DIR/$TARGET_FILE
# Absolute path this script is in. /home/user/bin
BASE=`dirname $SCRIPT`/
# Keeps the executing directory as the JMVC root.
cd$BASE..
# classpath
CP=$BASE../steal/rhino/js.jar
# load the run.js file
LOADPATH=${BASE}scripts/run.js
# call js.bat
.$BASE../steal/rhino/loader $1$2$3$4$5$6