:p
[lectures/dfb-slides.git] / cont2xml
index dac9a51..42aab82 100755 (executable)
--- a/cont2xml
+++ b/cont2xml
@@ -85,15 +85,23 @@ while [ "1" ]; do
 <header size="10"></header>
 <header fgcolor="#8080FF" size="35">`grep ^${count} $srcfile`</header>
 <header size="20"></header>
-</slide>
-
 EOF
 
-#      total_2
+if [ -f ./1337.pl ] ; then
+       ./1337.pl $@ $count
+else
+       echo "can't execute ./1337.pl $@ $count ... (hunz!!!) :)"
+fi
 
 # hunz's 1337.pl inserts content here ;)
+# ./1337.pl $@ $count ($1 is targetfile, $2 is sourcefile)
 
-[ "$count" = "$total" ] && break
+
+cat >> $trgfile << EOF
+</slide>
+
+EOF
+       [ "$count" = "$total" ] && break
 done