summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/build-rpm-package12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 2cb6302..5ba3334 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -109,6 +109,18 @@ cleanup () {
# Run cleanup() automatically.
trap cleanup EXIT SIGTERM SIGINT SIGHUP SIGPIPE SIGALRM SIGUSR1 SIGUSR2
+# FIXME: this should really be in a common.(sh) file!
+function make_boolean () {
+ typeset -l OPTION="${1}"
+
+ case "${OPTION}" in
+ ("0"|"no"|"false"|"") OPTION="0";;
+ (*) OPTION="1";;
+ esac
+
+ printf "${OPTION}"
+}
+
set_vars() {
TEMP_BASE="$HOME/tmp/"
mkdir -p "$TEMP_BASE"