summary refs log tree commit diff stats
path: root/examples/cross_calculator/android/scripts/nimbuild.sh
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-09-03 18:29:00 +0200
committerAraq <rumpf_a@web.de>2018-09-03 18:29:11 +0200
commit320582a55c9ba1f91d70a3f120413e305fda2962 (patch)
tree6114d47a5342adfd4d1f472bb3484a73ad11cf06 /examples/cross_calculator/android/scripts/nimbuild.sh
parent1a60ffcf1dc265c6b92dfd757e1bfd5e904c1f3d (diff)
downloadNim-320582a55c9ba1f91d70a3f120413e305fda2962.tar.gz
cleanup Nim's examples/ directory; closes #7725
Diffstat (limited to 'examples/cross_calculator/android/scripts/nimbuild.sh')
-rw-r--r--examples/cross_calculator/android/scripts/nimbuild.sh34
1 files changed, 0 insertions, 34 deletions
diff --git a/examples/cross_calculator/android/scripts/nimbuild.sh b/examples/cross_calculator/android/scripts/nimbuild.sh
deleted file mode 100644
index 97130b8dd..000000000
--- a/examples/cross_calculator/android/scripts/nimbuild.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-
-# Set this to the local or full path of your nimrod compiler
-PATH_TO_NIMROD=~/project/nimrod/bin/nimrod
-# Set this to the location of the nimbase.h file so
-# the script can update it if it changes.
-PATH_TO_NIMBASE=~/project/nimrod/lib/nimbase.h
-
-# Force errors to fail script.
-set -e
-
-# If we are running from inside the scripts subdir, get out.
-if [ ! -d src ]
-then
-	cd ..
-fi
-
-DEST_NIMBASE=jni/nimcache/nimbase.h
-
-# Ok, are we out now?
-if [ -d src ]
-then
-	$PATH_TO_NIMROD c --noMain  --app:lib \
-		--nimcache:jni/nimcache --cpu:arm --os:linux \
-		--compileOnly --header ../nimrod_backend/*.nim
-	if [ "${PATH_TO_NIMBASE}" -nt "${DEST_NIMBASE}" ]
-	then
-		echo "Updating nimbase.h"
-		cp "${PATH_TO_NIMBASE}" "${DEST_NIMBASE}"
-	fi
-else
-	echo "Uh oh, src directory not found?"
-	exit 1
-fi