[packages/rpm-build-tools] allow $BUILDER_OPTS to set globally available commandline options

glen glen at pld-linux.org
Thu Jun 4 10:44:51 CEST 2015


commit 0b668a05307cd03a668b33d2126ebc3ff9f74c1d
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Jun 4 11:44:34 2015 +0300

    allow $BUILDER_OPTS to set globally available commandline options

 builder.sh | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/builder.sh b/builder.sh
index 0de793a..52d306a 100755
--- a/builder.sh
+++ b/builder.sh
@@ -2052,6 +2052,11 @@ if [ $# = 0 ]; then
 	exit 1
 fi
 
+# stuff global $BUILDER_OPTS from env as args
+if [ "$BUILDER_OPTS" ]; then
+	set -- "$BUILDER_OPTS" "$@"
+fi
+
 while [ $# -gt 0 ]; do
 	case "${1}" in
 		-4|-6)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/0b668a05307cd03a668b33d2126ebc3ff9f74c1d



More information about the pld-cvs-commit mailing list