summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--altosui/Makefile.am9
-rwxr-xr-xjenkins.sh7
2 files changed, 11 insertions, 5 deletions
diff --git a/altosui/Makefile.am b/altosui/Makefile.am
index 0440b4af..df9fe5d1 100644
--- a/altosui/Makefile.am
+++ b/altosui/Makefile.am
@@ -263,8 +263,12 @@ altosui: Makefile
chmod +x $@
altosui-test: Makefile
- echo "#!/bin/sh" > $@
- echo 'exec java -Djava.library.path="../libaltos/.libs" -jar altosui.jar "$$@"' >> $@
+ echo '#!/bin/sh' > $@
+ echo 'dir="$$(dirname $$0)"' >> $@
+ echo 'cd "$$dir"' >> $@
+ echo 'altosui="$$(pwd -P)"' >> $@
+ echo 'altos="$$(dirname $$altosui)"' >> $@
+ echo 'exec java -Djava.library.path="$$altos/libaltos/.libs" -jar "$$altosui/altosui.jar" "$$@"' >> $@
chmod +x $@
altosui-jdb: Makefile
@@ -364,4 +368,3 @@ $(MACOSX_DIST): $(MACOSX_FILES) $(MACOSX_EXTRA) Makefile
$(WINDOWS_DIST): $(WINDOWS_FILES) altos-windows.nsi
-rm -f $@
makensis -Oaltos-windows.log "-XOutFile $@" "-DVERSION=$(VERSION)" altos-windows.nsi
-
diff --git a/jenkins.sh b/jenkins.sh
index 74e48bd5..e6cc7da4 100755
--- a/jenkins.sh
+++ b/jenkins.sh
@@ -11,6 +11,9 @@ time=`which time`
if [ -n "$time" ]; then
time="$time -v"
fi
+# NOTE: the build process may fail on multi-cpu systems. If it fails try setting cpus=1
+# cpus=$(nproc)
+cpus=1
echo "=== starting altos build at $(date) ==="
env
@@ -18,5 +21,5 @@ echo "======================================="
set -x
./autogen.sh $prefix $android
-make -j $(nproc) clean
-$time make -j $(nproc) all fat
+make -j $cpus clean
+$time make -j $cpus all fat