diff options
Diffstat (limited to 'tools/build')
-rwxr-xr-x | tools/build | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tools/build b/tools/build deleted file mode 100755 index 3ca8a76..0000000 --- a/tools/build +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # environment variables: | ||
4 | # $JFLAGS: additional flags passed to the java compiler | ||
5 | |||
6 | BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/.. | ||
7 | |||
8 | source $BASEDIR/envcfg | ||
9 | |||
10 | CLASSPATH="$BASEDIR/build/:$BASEDIR/lib/*:$GNUNET_JAVA_CLASSPATH:$GNUNET_JAVA_DEPS" | ||
11 | |||
12 | echo "using classpath $CLASSPATH" | ||
13 | |||
14 | # collect all source files | ||
15 | SOURCES=`find "$BASEDIR/src/" "$BASEDIR/test/" -name "*.java"` | ||
16 | |||
17 | mkdir -p $BASEDIR/build | ||
18 | |||
19 | javac $JFLAGS -cp $CLASSPATH -d $BASEDIR/build/ $SOURCES | ||
20 | |||
21 | cd "$BASEDIR/src/" | ||
22 | |||
23 | # collect resources from src/ and copy to build/ | ||
24 | find "." \( -name "*.txt" -o -name "*.properties" \) \ | ||
25 | -exec cp --parents '{}' "../build" \; | ||