-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompile
More file actions
executable file
·47 lines (39 loc) · 807 Bytes
/
compile
File metadata and controls
executable file
·47 lines (39 loc) · 807 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
CURDIR=`pwd`
MERCURIALDIR="${CURDIR}/.."
JPFDIR="${MERCURIALDIR}/jpf-core"
SPFDIR="${MERCURIALDIR}/jpf-symbc"
CP=""
BUILDDIR=$CURDIR"/build"
if [ ! -d "$BUILDDIR" ]; then
mkdir $BUILDDIR
mkdir $BUILDDIR'/main'
mkdir $BUILDDIR'/examples'
fi
## building JPF (if necessary)
#(cd ${JPFDIR};
# ./bin/ant
#)
for x in `ls ${JPFDIR}/build/*.jar`
do
CP=${CP}:$x
done
## building SPF (if necessary)
#(cd ${SPFDIR};
# ant
#)
for x in `ls ${SPFDIR}/build/*.jar`
do
CP=${CP}:$x
done
LIBSDIR=${CURDIR}/lib
#### general jars
for x in `ls ${LIBSDIR}/*.jar`
do
CP=${CP}:$x
done
find src/main -name "*.java" | \
xargs javac -g -cp $CP -d build/main
find src/examples -name "*.java" | \
xargs javac -g -cp $CP -d build/examples
jar cvf build/jpf-bmc.jar -C build/main .