5 echo "usage: mconfigure [options] <package>"
6 echo " -c : copy configure/Makefile"
8 echo " -p : pack default: do all"
12 ##############################################################################
14 ##############################################################################
18 echo "run mconfigure in the project base directory with a debian directory in it!"
25 confirure_args="-b ../build"
26 while [ $OPTIND -le "$#" ]
37 \?) $confirure_args="$configure_ars -$OPTARG"
38 if [ $OPTARG="a" -o $OPTARG="C" -o $OPTARG="i" -o $OPTARG="v" ]
41 $confirure_args="$configure_ars ${!OPTIND}"
44 :) echo "Option -$OPTARG requires an argument."
61 if [ $configure -eq 1 ]
63 # installation of configure file
64 cp /usr/share/mbuild/configure .
68 ln -s /usr/share/mbuild/configure .
72 configure_args="$configure_args $paket"
73 if [ -x debian/$paket.preconfigure ]
75 # if necessary $configure_args can be added to setenv.sh
76 debian/$paket.preconfigure
81 if [ -x debian/$paket.build -o -e debian/$paket.cmake ]
83 echo "BUILD_DIR=../build" >> debian/setenv.sh
89 if grep -- "-prepare" debian/$paket.build >/dev/null
91 echo "prepare in <paket>.build no longer supported. Use <paket>.prebuild"
101 ./configure $configure_args
103 # if nothing is selected, select all
104 if [ $compile -eq 0 -a $pack -eq 0 ]
110 if [ $compile -eq 1 ]