posaune
authorMichael J.M. Wagner <michael@wagnertech.de>
Mon, 17 Oct 2022 19:03:30 +0000 (21:03 +0200)
committerMichael J.M. Wagner <michael@wagnertech.de>
Mon, 17 Oct 2022 19:03:30 +0000 (21:03 +0200)
tools/make/configure
tools/make/mconfigure

index 2eb9f91..21cf3f8 100755 (executable)
@@ -195,7 +195,7 @@ do
                                ;;
                        d) compile_dir=$OPTARG
                                ;;
-                       d) compile_target=$OPTARG
+                       e) compile_target=$OPTARG
                                ;;
                        i)      install_dir=$OPTARG
                                ;;
@@ -228,12 +228,6 @@ then
        exit 7
 fi
 
-# read build configuration, if existing
-#if [ -f debian/$paket.conf ]
-#then
-#      . debian/$paket.conf
-#fi
-
 if [ -n "$ARCH" -a -n "$cross" ]
 then
        echo "invalid options: supply -a for multiarch or -C for explicit cross compile environment"
index 0d053b1..466eb15 100755 (executable)
@@ -107,7 +107,7 @@ fi
 
 # perform configure
 . debian/$paket.conf
-if [ -n $old_build ]
+if [ -n "$old_build" ]
 then
        rm debian/$paket.conf
 fi
@@ -125,6 +125,12 @@ then
                exit 51
        fi
        configure_args="$configure_args -c $compile_type"
+       if [ -z "$compile_target" ]
+       then
+               echo "compile_target required in $paket.conf"
+               exit 52
+       fi
+       configure_args="$configure_args -e $compile_target"
 fi
 if [ "$target_type" == "FILE" ]
 then
@@ -213,3 +219,4 @@ fi
 # build package
 debian/rules pack
 
+