blob: 514df059122230e13043463f6b23a47f9f36ac4e [file] [log] [blame]
Ash Wilson18e9fab2016-04-14 18:42:16 -07001#!/bin/bash
2
3# First, get into the right directory
4THISPATH=$(dirname "$BASH_SOURCE")
5cd $THISPATH
6
7# Now, we check to see that the version env var is set
8${CPACK_PACKAGE_VERSION:?"Need to set CPACK_PACKAGE_VERSION env var!"}
Ash Wilsonf6f06622016-04-14 18:55:59 -07009$CPACK_DEBIAN_PACKAGE_ARCHITECTURE=`dpkg --print-architecture`
Ash Wilson18e9fab2016-04-14 18:42:16 -070010
11# OK, now we get down to the business of building...
12rm -rf ./build
13mkdir build
14cd build
15cmake ..
16make package
17cpack -G DEB
18mv ./*.deb ../installer-packages
19echo "If you've gotten to this point, the package has been built"
20echo "and exists at "$THISPATH"/installer-packages"
21echo "Don't forget to add and commit the new package, and tag the commit!"