jaja
[lectures/dfb-slides.git] / cont2xml
index dac9a51..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,15 +85,22 @@ while [ "1" ]; do
 <header size="10"></header>
 <header fgcolor="#8080FF" size="35">`grep ^${count} $srcfile`</header>
 <header size="20"></header>
-</slide>
 
 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))
 
-#      total_2
+       #while [ "1" ]; do
+       #       cat 
+       # temporal devel break, stonefly will have a look at this script now! :)
 
-# hunz's 1337.pl inserts content here ;)
+cat >> $trgfile << EOF
+</slide>
 
-[ "$count" = "$total" ] && break
+EOF
+       [ "$count" = "$total" ] && break
 done