Repository : http://git.fedorahosted.org/cgit/firewalld-recode.git
On branch : master
commit 53eb6cb511a3eee6c2a6715633a1a1b42355e398 Author: Daniel Kopecek dkopecek@redhat.com Date: Fri Oct 3 10:37:52 2014 +0200
Allow to specify the build type as a first argument to build.sh
build.sh | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/build.sh b/build.sh index ad35e6f..f350124 100755 --- a/build.sh +++ b/build.sh @@ -1,13 +1,21 @@ #!/bin/sh set -e -o pipefail
+if [ -z "$1" ]; then + BUILD_TYPE=Debug +else + BUILD_TYPE=$1 +fi + BUILDDIR="_build" MAKEJOBS="$(grep -c ^processor /proc/cpuinfo || echo 1)"
rm -rf "${BUILDDIR}" mkdir "${BUILDDIR}" pushd "${BUILDDIR}" -cmake -DCMAKE_BUILD_TYPE:STRING=Debug .. +echo "Build type: ${BUILD_TYPE}" +echo " Make jobs: ${MAKEJOBS}" +cmake -DCMAKE_BUILD_TYPE:STRING=${BUILD_TYPE} .. time make -j${MAKEJOBS} echo popd
firewalld-recode@lists.fedorahosted.org