diff build.sh @ 171:b080e62b16b4

Enhanced buildscript to simplify compiling for new users
author Abscissa
date Sun, 03 Oct 2010 17:55:10 -0400
parents 14feb7ae01a6
children 9f4e5ac4f0a3
line wrap: on
line diff
--- a/build.sh	Thu Sep 30 14:09:50 2010 +0400
+++ b/build.sh	Sun Oct 03 17:55:10 2010 -0400
@@ -1,4 +1,11 @@
 #!/bin/sh
-#i686-unknown-linux-gnu-g++ -c bridge/bridge.cpp -obridge.o
-g++ -c bridge/bridge.cpp -obridge.o
-dmd -debug -gc @commands.linux.txt && dmd -release -O -inline @commands.linux.txt #|& head
+# This has exactly the same semantics as the old buildscript,
+# but supports extra optional command line arguments.
+# Too see the supported args, run: ./build.sh --help
+
+rdmd -unittest buildHelper.d "$@"
+
+# Old buildscript:
+##i686-unknown-linux-gnu-g++ -c bridge/bridge.cpp -obridge.o
+#g++ -c bridge/bridge.cpp -obridge.o
+#dmd -debug -gc @commands.linux.txt && dmd -release -O -inline @commands.linux.txt #|& head