diff options
author | Araq <rumpf_a@web.de> | 2018-09-03 18:29:00 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-09-03 18:29:11 +0200 |
commit | 320582a55c9ba1f91d70a3f120413e305fda2962 (patch) | |
tree | 6114d47a5342adfd4d1f472bb3484a73ad11cf06 /examples/cross_calculator/android/scripts/nimbuild.sh | |
parent | 1a60ffcf1dc265c6b92dfd757e1bfd5e904c1f3d (diff) | |
download | Nim-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.sh | 34 |
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 |