X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=cont2xml;h=0148067df931e866626c3ab81795fd05cf91b848;hb=3100e3400ca2c4f54fe6f242d91d88cf9038c98e;hp=2323536355437003cf94592514c089e41d640240;hpb=5f12223b9a9a479085647770c25f83c1b677a17e;p=lectures%2Fdfb-slides.git
diff --git a/cont2xml b/cont2xml
index 2323536..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,12 +85,16 @@ while [ "1" ]; do
`grep ^${count} $srcfile`
-EOF
-
-
-# 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