jaja
[lectures/dfb-slides.git] / cont2xml
index 2323536..0148067 100755 (executable)
--- a/cont2xml
+++ b/cont2xml
@@ -59,7 +59,7 @@ while [ "1" ]; do
        ((j = 0))
        ((count += 1))
        cat >> $trgfile << EOF
-<text size="20">`grep ^${count} $srcfile | awk -F^ '{ print $0 }'`</text>
+<text size="20">`grep ^${count} $srcfile | awk '{ print $0 }'`</text>
 <text/>
 EOF
        grep ^\ ${count}\.[0-9] $srcfile | awk '{ print "<text size=\"20\">"$0"</text>" }' >> $trgfile
@@ -85,12 +85,16 @@ while [ "1" ]; do
 <header size="10"></header>
 <header fgcolor="#8080FF" size="35">`grep ^${count} $srcfile`</header>
 <header size="20"></header>
-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
 </slide>