function echo_usage {
echo "usage: mconfigure [options] <package>"
- ./configure -I
+ echo " -o: old style build (not recommended"
+ ./configure -h
}
function create_conf {
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
# 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"
echo "compile_type required in $paket.conf"
exit 51
fi
+ configure_args="$configure_args -c $compile_type"
fi
if [ "$target_type" == "FILE" ]
then