aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
blob: 8383aaf3ba91f080590f1ea0c3745a638044d528 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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!"}
export $CPACK_DEBIAN_PACKAGE_ARCHITECTURE=`dpkg --print-architecture`

# 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!"