From b1d59882f6742a8a1d5b37f6085592c8544937dc Mon Sep 17 00:00:00 2001 From: hackbard Date: Fri, 28 Feb 2003 04:17:50 +0000 Subject: [PATCH] script fixes --- create-xml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) 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 -- 2.39.2