From: hackbard Date: Fri, 28 Feb 2003 04:17:50 +0000 (+0000) Subject: script fixes X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1d59882f6742a8a1d5b37f6085592c8544937dc;p=lectures%2Fdfb-slides.git script fixes --- diff --git a/create-xml b/create-xml index 89d7f11..9cf5f5b 100755 --- a/create-xml +++ b/create-xml @@ -19,6 +19,7 @@ cat > $dir/$name << EOF bgimage="../img/bg.png" bullet="../img/bullet.png" screen_width="1024" screen_height="768"> +
$dir
@@ -37,6 +38,38 @@ EOF total=$# ((count = 0)) +cat >> $dir/$name << EOF + +
+
Inhalt
+
+ +EOF +for i in $@; do + ((j = 0)) + ((count += 1)) + cat >> $dir/$name << EOF + Kapitel $count + +EOF + while [ "1" ]; do + ((j += 1)) + cat >> $dir/$name << EOF + $j +EOF + [ "$j" = "$i" ] && break + done + cat >> $dir/$name << EOF + +EOF +done +cat >> $dir/$name << EOF +
+ +EOF + +((count = 0)) + for i in $@; do ((count += 1)) cat >> $dir/$name << EOF