-
Notifications
You must be signed in to change notification settings - Fork 8
/
frontier-bld.sh
executable file
·49 lines (40 loc) · 2 KB
/
frontier-bld.sh
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
if [ $# -eq 0 ]
then
echo "No arguments supplied: Do you want to build for \"core\" or \"pi\" experiments?"
exit;
fi
pushd seep-system/examples/acita_demo_2015 ; ant clean ; popd
pushd seep-system/examples/stateless-simple-query ; ant clean ; popd
pushd seep-system/examples/object_detector; ant clean ; popd
#mvn -Djavacpp.platform=linux-armhf clean compile assembly:single
mkdir -p seep-system/examples/acita_demo_2015/lib
mkdir -p seep-system/examples/stateless-simple-query/lib
rm -f seep-system/examples/acita_demo_2015/lib/*.jar
rm -rf seep-system/examples/object_detector/src/main/resources/images/detections/*.jpg # TODO: move this.
if [[ "$1" = "core" ]]
then
cp seep-system/pom.xml.core seep-system/pom.xml
cp seep-system/examples/object_detector/build.xml.core seep-system/examples/object_detector/build.xml
else
cp seep-system/pom.xml.pi seep-system/pom.xml
cp seep-system/examples/acita_demo_2015/lib.arm/*.jar seep-system/examples/acita_demo_2015/lib
cp seep-system/examples/object_detector/build.xml.pi seep-system/examples/object_detector/build.xml.pi
fi
mvn install:install-file -DgroupId=soot -DartifactId=soot-framework -Dversion=2.5.0 -Dpackaging=jar -Dfile=libs/soot/soot-framework/2.5.0/soot-2.5.0.jar
mvn clean compile assembly:single
cp seep-system/target/seep-system-0.0.1-SNAPSHOT.jar seep-system/examples/acita_demo_2015/lib
cp seep-system/target/seep-system-0.0.1-SNAPSHOT.jar seep-system/examples/stateless-simple-query/lib
cp seep-system/target/seep-system-0.0.1-SNAPSHOT.jar seep-system/examples/object_detector/lib
mkdir -p seep-system/examples/acita_demo_2015/tmp
mkdir -p seep-system/examples/object_detector/tmp
rm seep-system/examples/object_detector/tmp/*
if [[ "$1" = "core" ]]
then
pushd seep-system/examples/acita_demo_2015 ; ant dist-res ; popd
else
pushd seep-system/examples/acita_demo_2015 ; ant dist ; popd
fi
pushd seep-system/examples/stateless-simple-query ; ant ; popd
pushd seep-system/examples/object_detector ; ant dist ; ant ; popd
#./gradlew build -x test