]> hackdaworld.org Git - lectures/dfb-slides.git/commitdiff
script fixes
authorhackbard <hackbard>
Fri, 28 Feb 2003 04:17:50 +0000 (04:17 +0000)
committerhackbard <hackbard>
Fri, 28 Feb 2003 04:17:50 +0000 (04:17 +0000)
create-xml

index 89d7f11a171d9b5340df7750dd58b35b62ac6baf..9cf5f5ba4723d00dbf7c16405fbe5d67c5ba4d28 100755 (executable)
@@ -19,6 +19,7 @@ cat > $dir/$name << EOF
         bgimage="../img/bg.png" 
         bullet="../img/bullet.png"
         screen_width="1024" screen_height="768">
+
   <slide effect="none">
     <header size="10"></header>
     <header fgcolor="#5080FF" size="80">$dir</header>
@@ -37,6 +38,38 @@ EOF
 total=$#
 ((count = 0))
 
+cat >> $dir/$name << EOF
+  <slide>
+    <header size="10"></header>
+    <header fgcolor="#8080FF" size="35">Inhalt</header>
+    <header size="20"></header>
+
+EOF
+for i in $@; do
+       ((j = 0))
+       ((count += 1))
+       cat >> $dir/$name << EOF
+   <text size="20">Kapitel $count</text>
+       <text/>
+EOF
+       while [ "1" ]; do
+               ((j += 1))
+               cat >> $dir/$name << EOF
+        <listitem size="20">$j</listitem>
+EOF
+               [ "$j" = "$i" ] && break
+       done
+       cat >> $dir/$name << EOF
+        <text/>
+EOF
+done
+cat >> $dir/$name << EOF
+  </slide>
+
+EOF
+
+((count = 0))
+
 for i in $@; do
        ((count += 1))
        cat >> $dir/$name << EOF