added shell parser (unfinished) & added resolution info to content files
[lectures/dfb-slides.git] / create-xml
index 753308e..81990e1 100755 (executable)
@@ -20,7 +20,7 @@ cat > $name << EOF
 <slides effect="slide top left, blend"
         bgcolor="#000000" fgcolor="#FFFFFF" 
         face="../ttf/decker.ttf" size="15" 
-        bgimage="../img/bg.png" 
+        bgimage="../img/bg1.png" 
         bullet="../img/bullet.png"
         screen_width="1024" screen_height="768">
 
@@ -59,11 +59,7 @@ while [ "1" ]; do
    <text size="20">$kapitel</text>
        <text/>
 EOF
-       for up in `grep ^${count} $file | awk -F^ '{ for(i=3;i<=NF;i++) print $i }'`; do
-               cat >> $name << EOF
-        <listitem size="20">$up</listitem>
-EOF
-       done
+       grep ^${count} $file | awk -F^ '{ for(i=3;i<=NF;i++) print "        <listitem size=\"20\">"$i"</listitem>" }' >> $name
        cat >> $name << EOF
         <text/>
 EOF
@@ -88,17 +84,13 @@ while [ "1" ]; do
 
 EOF
        ((j = 0))
-       for up in `grep ^${count} $file | awk -F^ '{ for(i=3;i<=NF;i++) print $i }'`; do
-               cat >> $name << EOF
-    <text size="20">$up</text>
-        <text/>
-        <listitem size="20">muster</listitem>
-        <listitem size="20">muster</listitem>
-        <listitem size="20">muster</listitem>
-        <listitem size="20">muster</listitem>
-        <text/>
-EOF
-       done
+       grep ^${count} $file | awk -F^ '{ for(i=3;i<=NF;i++) print "    <text size=\"20\">" $i "</text> \
+        <text/> \
+        <listitem size=\"20\">muster</listitem> \
+        <listitem size=\"20\">muster</listitem> \
+        <listitem size=\"20\">muster</listitem> \
+        <listitem size=\"20\">muster</listitem> \
+        <text/>" }' >> $name
        cat >> $name << EOF
   </slide>
 EOF