aboutsummaryrefslogtreecommitdiff
path: root/tools/build
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build')
-rwxr-xr-xtools/build25
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
6BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/..
7
8source $BASEDIR/envcfg
9
10CLASSPATH="$BASEDIR/build/:$BASEDIR/lib/*:$GNUNET_JAVA_CLASSPATH:$GNUNET_JAVA_DEPS"
11
12echo "using classpath $CLASSPATH"
13
14# collect all source files
15SOURCES=`find "$BASEDIR/src/" "$BASEDIR/test/" -name "*.java"`
16
17mkdir -p $BASEDIR/build
18
19javac $JFLAGS -cp $CLASSPATH -d $BASEDIR/build/ $SOURCES
20
21cd "$BASEDIR/src/"
22
23# collect resources from src/ and copy to build/
24find "." \( -name "*.txt" -o -name "*.properties" \) \
25 -exec cp --parents '{}' "../build" \;