diff options
author | Nao Pross <naopross@thearcway.org> | 2017-12-18 00:00:21 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2017-12-18 00:00:21 +0100 |
commit | 2e27a93e3ed189b4d96ec7df6e05b102dd2e841a (patch) | |
tree | 6952edd5db3b4075532c4ce75bda764d5a67051b /etc | |
parent | Update .gitignore and minor changes (mostly formatting) (diff) | |
download | OrbitingYeti-2e27a93e3ed189b4d96ec7df6e05b102dd2e841a.tar.gz OrbitingYeti-2e27a93e3ed189b4d96ec7df6e05b102dd2e841a.zip |
Replace tabs with spaces, set up CMake build system
Other changes:
- update gitignore
- build scripts under `etc`
- fix window
Diffstat (limited to '')
-rwxr-xr-x | etc/linux-build.sh | 5 | ||||
-rwxr-xr-x | etc/linux-clean-tree.sh | 31 | ||||
-rwxr-xr-x | etc/linux-release-build.sh | 5 | ||||
-rw-r--r-- | etc/windows-build.bat | 5 |
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 |