]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
debian: ensure set -e behavior when run under build-all
authorTravis Cross <tc@traviscross.com>
Mon, 28 May 2012 17:42:51 +0000 (17:42 +0000)
committerTravis Cross <tc@traviscross.com>
Mon, 28 May 2012 18:22:13 +0000 (18:22 +0000)
build_all call each of these subroutines under a sub-shell, so the set
-e gets wiped out.

debian/util.sh

index 033191321077483c3c6c351df6060ab3d052312c..c6220e96a00e05e5661a436adaafd839a1122e50 100755 (executable)
@@ -134,6 +134,7 @@ check_repo_clean () {
 
 create_orig () {
   {
+    set -e
     local OPTIND OPTARG
     local uver="" bundle_deps=false zl=9e
     while getopts 'bnv:z:' o "$@"; do
@@ -185,6 +186,7 @@ EOF
 
 create_dsc () {
   {
+    set -e
     local OPTIND OPTARG modules_list=""
     while getopts 'm:' o "$@"; do
       case "$o" in
@@ -223,6 +225,7 @@ EOF
 
 build_debs () {
   {
+    set -e
     local OPTIND OPTARG debug_hook=false hookdir=""
     while getopts 'd' o "$@"; do
       case "$o" in