((j = 0))
((count += 1))
cat >> $trgfile << EOF
-<text size="20">`grep ^${count} $srcfile | awk -F^ '{ print $0 }'`</text>
+<text size="20">`grep ^${count} $srcfile | awk '{ print $0 }'`</text>
<text/>
EOF
grep ^\ ${count}\.[0-9] $srcfile | awk '{ print "<text size=\"20\">"$0"</text>" }' >> $trgfile
<header size="10"></header>
<header fgcolor="#8080FF" size="35">`grep ^${count} $srcfile`</header>
<header size="20"></header>
-EOF
-
-if [ -f ./1337.pl ] ; then
- ./1337.pl $@ $count
-else
- echo "can't execute ./1337.pl $@ $count ... (hunz!!!) :)"
-fi
-
-# hunz's 1337.pl inserts content here ;)
-# ./1337.pl $@ $count ($1 is targetfile, $2 is sourcefile)
+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))
+
+ #while [ "1" ]; do
+ # cat
+ # temporal devel break, stonefly will have a look at this script now! :)
cat >> $trgfile << EOF
</slide>
<header size="10"></header>
<header fgcolor="#8080FF" size="35">1 Einfuehrung</header>
<header size="20"></header>
+
</slide>
<slide>
<header size="10"></header>
<header fgcolor="#8080FF" size="35">2 Funktionsweise </header>
<header size="20"></header>
+
</slide>
<slide>
<header size="10"></header>
<header fgcolor="#8080FF" size="35">3 WaveLAN unter Linux</header>
<header size="20"></header>
+
</slide>
<slide>
<header size="10"></header>
<header fgcolor="#8080FF" size="35">4 Sicherheit</header>
<header size="20"></header>
+
</slide>
</slides>