X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=cont2xml;h=0148067df931e866626c3ab81795fd05cf91b848;hb=f6ebf37351034e1632eabdd0aded671cc35d4656;hp=7107138cfdc92436337bfe00e6892be82692d5ba;hpb=f1b6a77573b9e127f79f87f780b11aebaf588c70;p=lectures%2Fdfb-slides.git
diff --git a/cont2xml b/cont2xml
index 7107138..0148067 100755
--- a/cont2xml
+++ b/cont2xml
@@ -59,7 +59,7 @@ while [ "1" ]; do
((j = 0))
((count += 1))
cat >> $trgfile << EOF
-`grep ^${count} $srcfile | awk -F^ '{ print $0 }'`
+`grep ^${count} $srcfile | awk '{ print $0 }'`
EOF
grep ^\ ${count}\.[0-9] $srcfile | awk '{ print ""$0"" }' >> $trgfile
@@ -85,17 +85,16 @@ while [ "1" ]; do
`grep ^${count} $srcfile`
-EOF
-
-if [ -f ./1337.pl ] ; then
- ./1337.pl $@ $count
-else
- echo "can't execute $@ $count ... (hunz!!!) :)"
-fi
-
-# hunz's 1337.pl inserts content here ;)
-# ./1337.pl $@ $count ($1 is targetfile, $2 is sourcefile)
+EOF
+
+ total_j=`grep ^\ ${count}.[0-9] $srcfile | tail -1 | awk '{ print $1 }' | awk -F . '{ print $2 }'`
+ echo " - ${total_j} chapters below"
+ ((count_j = 0))
+
+ #while [ "1" ]; do
+ # cat
+ # temporal devel break, stonefly will have a look at this script now! :)
cat >> $trgfile << EOF