X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/projects.git/blobdiff_plain/dcad31e1921b598a7caa7cc7dab5a8145aa22765..cb90cf5532bd7921186006be739248887233ed4d:/tools/make/mconfigure diff --git a/tools/make/mconfigure b/tools/make/mconfigure index e091ca6..466eb15 100755 --- a/tools/make/mconfigure +++ b/tools/make/mconfigure @@ -3,7 +3,8 @@ set -e function echo_usage { echo "usage: mconfigure [options] " - ./configure -I + echo " -o: old style build (not recommended" + ./configure -h } function create_conf { @@ -45,9 +46,11 @@ configure=0 configure_args="-i debian/tmp" while [ $OPTIND -le "$#" ] do - if getopts "c" opt + if getopts "o" opt then case $opt in + o) old_build=1 + ;; \?) $confirure_args="$configure_ars -$OPTARG" if [ $OPTARG="a" -o $OPTARG="C" -o $OPTARG="i" -o $OPTARG="v" ] then @@ -104,6 +107,11 @@ fi # perform configure . debian/$paket.conf +if [ -n "$old_build" ] +then + rm debian/$paket.conf +fi + if [ "$compile_type" != "NONE" ] then configure_args="$configure_args -b" @@ -116,6 +124,13 @@ then echo "compile_type required in $paket.conf" 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 @@ -204,3 +219,4 @@ fi # build package debian/rules pack +