blob: 303ed0d8975f76d629cb34c85959d2fcd0c1791f (
plain) (
blame)
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
|
#!/bin/bash
# environment variables:
# $JFLAGS: additional flags passed to the java compiler
BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/..
# collect all source files
SOURCES=`find "$BASEDIR/src/" "$BASEDIR/test/" -name "*.java"`
mkdir -p $BASEDIR/build
javac $JFLAGS -cp "$BASEDIR/build/:$BASEDIR/lib/*" -d $BASEDIR/build/ $SOURCES || exit 1
cd "$BASEDIR/src/"
# collect resources from src/ and copy to build/
find "." \( -name "*.txt" -o -name "*.properties" \) \
-exec cp --parents '{}' "../build" \;
cd $OLDPWD
cd doc
#pdflatex *.tex
cd $OLDPWD
# make jar
./tools/make-jar
|