aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/build25
-rwxr-xr-xtools/update-msgtypes20
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
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" \;
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
3BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/..
4SOURCES=$( mktemp "/tmp/gnunet-java-sources-XXX" )
5
6source $BASEDIR/envcfg
7
8CP="$BASEDIR/build/:$BASEDIR/lib/*:$GNUNET_JAVA_CLASSPATH:$GNUNET_JAVA_DEPS/*"
9
10# collect all source files
11find $BASEDIR/src/ $BASEDIR/test/ -name "*.java" > $SOURCES
12
13# run annotation processor
14javac -cp $CP -processor org.gnunet.construct.MessageIdAnnotationProcessor -proc:only -s src @$SOURCES
15
16if [ $? ] ; then
17 rm $SOURCES
18else
19 exit 1
20fi