diff options
author | Ash Wilson <ash.d.wilson@gmail.com> | 2016-04-14 18:42:16 -0700 |
---|---|---|
committer | Ash Wilson <ash.d.wilson@gmail.com> | 2016-04-14 18:42:16 -0700 |
commit | 18e9fab81176464af11fe8e5428861dea716eb99 (patch) | |
tree | 528ad489551672aeef8afea8ec1d06025a559007 /build.sh | |
parent | b7f4a1b5beac8eba5b9b4f3d5e5bab89b94de8a6 (diff) |
Checking in first attempt at build script
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..83bfc03 --- /dev/null +++ b/build.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# First, get into the right directory +THISPATH=$(dirname "$BASH_SOURCE") +cd $THISPATH + +# Now, we check to see that the version env var is set +${CPACK_PACKAGE_VERSION:?"Need to set CPACK_PACKAGE_VERSION env var!"} +${CPACK_DEBIAN_PACKAGE_ARCHITECTURE:?"Need to set CPACK_DEBIAN_PACKAGE_ARCHITECTURE env var!"} + +# OK, now we get down to the business of building... +rm -rf ./build +mkdir build +cd build +cmake .. +make package +cpack -G DEB +mv ./*.deb ../installer-packages +echo "If you've gotten to this point, the package has been built" +echo "and exists at "$THISPATH"/installer-packages" +echo "Don't forget to add and commit the new package, and tag the commit!" |