;;
d) compile_dir=$OPTARG
;;
- d) compile_target=$OPTARG
+ e) compile_target=$OPTARG
;;
i) install_dir=$OPTARG
;;
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"
# perform configure
. debian/$paket.conf
-if [ -n $old_build ]
+if [ -n "$old_build" ]
then
rm debian/$paket.conf
fi
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
# build package
debian/rules pack
+