aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index 39849a5..9d242c3 100755
--- a/build.sh
+++ b/build.sh
@@ -7,6 +7,18 @@ SRCD="src"
ODIR="obj"
BIN="bin"
+function clean {
+ rm -rf $BIN
+ rm -rf $ODIR
+ rm -rf files
+}
+
+if ! { [[ $# -eq 0 ]]; } 2> /dev/null
+then
+ ($1)
+ exit 0;
+fi
+
mkdir -p $ODIR
mkdir -p $BIN