X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=cont2xml;h=0148067df931e866626c3ab81795fd05cf91b848;hb=1725e9877e275c3da73250ac5d373eaf532c6027;hp=dac9a5183a7f3f210ab8c83eee4bd1eb8059980a;hpb=dcfe13a60d4b22e8d1da061da18e5a2e42687c82;p=lectures%2Fdfb-slides.git
diff --git a/cont2xml b/cont2xml
index dac9a51..0148067 100755
--- a/cont2xml
+++ b/cont2xml
@@ -59,7 +59,7 @@ while [ "1" ]; do
((j = 0))
((count += 1))
cat >> $trgfile << EOF
-`grep ^${count} $srcfile | awk -F^ '{ print $0 }'`
+`grep ^${count} $srcfile | awk '{ print $0 }'`
EOF
grep ^\ ${count}\.[0-9] $srcfile | awk '{ print ""$0"" }' >> $trgfile
@@ -85,15 +85,22 @@ while [ "1" ]; do
`grep ^${count} $srcfile`
-
EOF
+
+ total_j=`grep ^\ ${count}.[0-9] $srcfile | tail -1 | awk '{ print $1 }' | awk -F . '{ print $2 }'`
+ echo " - ${total_j} chapters below"
+ ((count_j = 0))
-# total_2
+ #while [ "1" ]; do
+ # cat
+ # temporal devel break, stonefly will have a look at this script now! :)
-# hunz's 1337.pl inserts content here ;)
+cat >> $trgfile << EOF
+
-[ "$count" = "$total" ] && break
+EOF
+ [ "$count" = "$total" ] && break
done