aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rwxr-xr-xetc/linux-build.sh5
-rwxr-xr-xetc/linux-clean-tree.sh31
-rwxr-xr-xetc/linux-release-build.sh5
-rw-r--r--etc/windows-build.bat5
4 files changed, 46 insertions, 0 deletions
diff --git a/etc/linux-build.sh b/etc/linux-build.sh
new file mode 100755
index 0000000..a7b08ae
--- /dev/null
+++ b/etc/linux-build.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+mkdir -p build/debug
+cmake -DCMAKE_BUILD_TYPE=Debug -H. -Bbuild/debug
+cmake --build build/debug -- clean all
diff --git a/etc/linux-clean-tree.sh b/etc/linux-clean-tree.sh
new file mode 100755
index 0000000..80a858c
--- /dev/null
+++ b/etc/linux-clean-tree.sh
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+# WARNING:
+#
+# this script will delete *everything* that is not
+# under version control
+#
+
+POSITIONAL=()
+CLEAN_ALL=false
+
+while [[ $# -gt 0 ]]; do
+ key="$1"
+
+ case $key in
+ -a|--all)
+ CLEAN_ALL=true
+ shift
+ ;;
+ *)
+ POSITIONAL+=("$1")
+ shift
+ ;;
+ esac
+done
+
+if [ "$CLEAN_ALL" = true ]; then
+ git clean -d -x -f
+else
+ git clean -d -X -f
+fi
diff --git a/etc/linux-release-build.sh b/etc/linux-release-build.sh
new file mode 100755
index 0000000..1f0dd08
--- /dev/null
+++ b/etc/linux-release-build.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+mkdir -p build/release
+cmake -DCMAKE_BUILD_TYPE=Release -H. -Bbuild/release
+cmake --build build/release -- clean all
diff --git a/etc/windows-build.bat b/etc/windows-build.bat
new file mode 100644
index 0000000..5d57706
--- /dev/null
+++ b/etc/windows-build.bat
@@ -0,0 +1,5 @@
+cd ..
+mkdir build/debug
+cmake -DCMAKE_BUILD_TYPE=Debug -H. -G "MinGW Makefiles" -Bbuild/debug
+cmake --build build/debug -- clean all
+pause