[SCM] Lisaac compiler branch, master, updated. lisaac-0.12-606-g4554e79

Mildred Ki'Lya silkensedai at online.fr
Mon Mar 1 01:31:06 UTC 2010


The following commit has been merged in the master branch:
commit f302a194a85500a9990f6ad5c5306386ae0c5af4
Author: Mildred Ki'Lya <silkensedai at online.fr>
Date:   Wed Nov 11 14:44:50 2009 +0100

    Added bootstrap test

diff --git a/tests/bootstrap.sh b/tests/bootstrap.sh
new file mode 100755
index 0000000..f14ef12
--- /dev/null
+++ b/tests/bootstrap.sh
@@ -0,0 +1,42 @@
+#! /bin/sh
+
+log(){
+  echo "$@"
+  "$@"
+}
+
+run(){
+  echo "$@"
+  "$@"
+  if [ $? != 0 ]; then
+    echo "** Error"
+  fi
+}
+
+cd "`dirname "$0"`"
+cd ..
+
+echo "** In: `pwd`"
+
+echo "** Create bootstrap directory"
+mkdir -p bootstrap
+cp bin/lisaac.c bootstrap
+echo "#define LISAAC_DIRECTORY \"`pwd`\"" > bootstrap/path.h
+cd bootstrap
+
+echo "** Cleaning up"
+run rm -f lisaac lisaac1* lisaac2*
+
+echo "** Compile provided lisaac.c: lisaac"
+run make CFLAGS=-lm lisaac
+
+echo "** Compile Lisaac sources:    lisaac1"
+run ./lisaac  ../src/make.lip -compiler -optim -o lisaac1
+
+echo "** Compile Lisaac sources:    lisaac2"
+run ./lisaac1 ../src/make.lip -compiler -optim -o lisaac2
+
+echo "** Test lisaac2"
+run ./lisaac2 -version
+
+exit $?

-- 
Lisaac compiler



More information about the Lisaac-commits mailing list