build: linux package fix

some linux package fixes and now there is a package option in the build.sh script
This commit is contained in:
Andreas Stallinger
2015-09-09 16:39:23 +02:00
parent baedc3eed1
commit 4c0d749a39
6 changed files with 10 additions and 9 deletions
+5
View File
@@ -27,6 +27,11 @@ then
#echo "debug app"
ninja -C build/Debug Coati && cd bin/app && Debug/Coati
fi
elif [ "$1" = "package" ] || [ "$1" = "p" ]
then
ninja package -C build/Release Coati
mkdir -p distr && cp build/Release/Coati*.deb distr && cp build/Release/Coati*.tar.gz distr
echo "Packages copied into the distr folder"
else
echo "no arguments: first argument 'release' or 'debug', second argument 'test' for tests"
fi