#|call script|!-rm -r suites/Projekte || true -!|
!|test.util.CallScript|
+|call script|!- rm suites/Cobol_320.pdf || true -!|
|call script|if ! [ -d suites/Projekte ]; then svn co http://wagnertech.de/svn/Projekte suites/Projekte/; fi|
|call script|svn up -r 320 suites/Projekte|
|call script|mkdir -p suites/Projekte/Kurse/Logo|
|call script|cp etc/Newelements.jpeg etc/UmschlagNewElements.pdf etc/Newelements1.pdf etc/Newelements2.pdf etc/Newelements3.pdf suites/Projekte/Kurse/Logo|
-|call script|cd suites/Projekte; mconfigure cobol|
-|call script|rm Projekte/debian/cobol.conf|
+|call script|cp etc/.cm.ignore suites/Projekte/|
+|call script|cd suites/Projekte; mconfigure -o cobol|
+|call script|rm suites/Projekte/.cm.ignore|
+|call script|ls suites/Cobol_320.pdf|
Build cobol handout in r.323
echo "debian.*" >> .cm.ignore
echo "up.*" >> .cm.ignore
fi
+
+ # add auto created files to .cm.ignore
+ if ! grep Makefile .cm.ignore >/dev/null ; then echo "Makefile" >>.cm.ignore; fi
+ if ! grep configure .cm.ignore >/dev/null ; then echo "configure" >>.cm.ignore; fi
+ if ! grep debian/rules .cm.ignore >/dev/null ; then echo "debian/rules" >>.cm.ignore; fi
+ if ! grep debian/rules.pre .cm.ignore >/dev/null ; then echo "debian/rules.pre" >>.cm.ignore; fi
+ if ! grep debian/setenv.sh .cm.ignore >/dev/null ; then echo "debian/setenv.sh" >>.cm.ignore; fi
+ if ! grep debian/tmp .cm.ignore >/dev/null ; then echo "debian/tmp" >>.cm.ignore; fi
project=$(pwd)
project=${project##*/}
mCM $project -b -an > /dev/null
wc=$(wc $project.batch)
rm $project.batch
- if [ "${wc:0:5}" != "0 0 0" ]
+ if [ "${wc:0:1}" != "1" ]
then
echo "M"
fi
fi
# read build configuration, if existing
-if [ -f debian/$paket.conf ]
-then
- . debian/$paket.conf
-fi
+#if [ -f debian/$paket.conf ]
+#then
+# . debian/$paket.conf
+#fi
if [ -n "$ARCH" -a -n "$cross" ]
then
cp debian/rules.pre $BUILD_DIR/$compile_dir/make.pre
pushd $BUILD_DIR/$compile_dir >/dev/null
ln -sf /usr/share/mbuild/makefile .
-# if [ -n "$sources_suffix" ]
-# then
-# echo "SOURCES = \\" >> make.pre
-# for suf in $sources_suffix
-# do
-# find . -name "*.$suf" -exec echo " "{}" \\" >> make.pre \;
-# done
-# echo >> make.pre
+ if [ -n "$sources_suffix" ]
+ then
+ echo "SOURCES = \\" >> make.pre
+ for suf in $sources_suffix
+ do
+ find . -name "*.$suf" -exec echo " "{}" \\" >> make.pre \;
+ done
+ echo >> make.pre
fi
popd >/dev/null
fi
add_sources tex xml
echo >> make.pre
popd >/dev/null
+ fi
if [ -x debian/$paket.prebuild ]
then
pushd $BUILD_DIR >/dev/null
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