blob: 8383aaf3ba91f080590f1ea0c3745a638044d528 [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 Wilsona5f62b62016-04-14 19:03:02 -07009export $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!"