diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/build | 25 | ||||
-rwxr-xr-x | tools/update-msgtypes | 20 |
2 files changed, 0 insertions, 45 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" \; | ||
diff --git a/tools/update-msgtypes b/tools/update-msgtypes deleted file mode 100755 index a294ce5..0000000 --- a/tools/update-msgtypes +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/.. | ||
4 | SOURCES=$( mktemp "/tmp/gnunet-java-sources-XXX" ) | ||
5 | |||
6 | source $BASEDIR/envcfg | ||
7 | |||
8 | CP="$BASEDIR/build/:$BASEDIR/lib/*:$GNUNET_JAVA_CLASSPATH:$GNUNET_JAVA_DEPS/*" | ||
9 | |||
10 | # collect all source files | ||
11 | find $BASEDIR/src/ $BASEDIR/test/ -name "*.java" > $SOURCES | ||
12 | |||
13 | # run annotation processor | ||
14 | javac -cp $CP -processor org.gnunet.construct.MessageIdAnnotationProcessor -proc:only -s src @$SOURCES | ||
15 | |||
16 | if [ $? ] ; then | ||
17 | rm $SOURCES | ||
18 | else | ||
19 | exit 1 | ||
20 | fi | ||