Permalink
Browse files

Add bash script for running builds.

Switching to DOS/PowerShell to run a build was slowly killing me.
  • Loading branch information...
1 parent 0481720 commit 4ba5339a202981f95e8d0f04c6bb4582a4044625 @mpareja mpareja committed Mar 20, 2013
Showing with 26 additions and 0 deletions.
  1. +26 −0 build.sh
View
@@ -0,0 +1,26 @@
+#! /bin/sh
+
+splat=$*
+root=$(pwd)
+nant="$root/lib/Nant/nant.exe"
+settings="$root/Settings/UppercuT.config"
+
+usage() {
+ echo
+ echo Usage: build.sh
+ echo
+}
+
+go() {
+ $nant -logger:NAnt.Core.DefaultLogger -quiet -f:build\\default.build -D:build.config.settings=$settings $splat
+ exit $?
+}
+
+if [ "$1" == "/?" ]; then usage;
+elif [ "$1" == "-?" ]; then usage;
+elif [ "$1" == "?" ]; then usage;
+elif [ "$1" == "/help" ]; then usage;
+elif [ "$1" == "--help" ]; then usage;
+elif [ "$1" == "-h" ]; then usage;
+else go;
+fi

0 comments on commit 4ba5339

Please sign in to comment.