projects
/
lectures
/
dfb-slides.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
exchanged render.c with patch aginst orig
[lectures/dfb-slides.git]
/
cont2xml
diff --git
a/cont2xml
b/cont2xml
index
7107138
..
0148067
100755
(executable)
--- a/
cont2xml
+++ b/
cont2xml
@@
-59,7
+59,7
@@
while [ "1" ]; do
((j = 0))
((count += 1))
cat >> $trgfile << EOF
((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
<text/>
EOF
grep ^\ ${count}\.[0-9] $srcfile | awk '{ print "<text size=\"20\">"$0"</text>" }' >> $trgfile
@@
-85,17
+85,16
@@
while [ "1" ]; do
<header size="10"></header>
<header fgcolor="#8080FF" size="35">`grep ^${count} $srcfile`</header>
<header size="20"></header>
<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 $@ $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>
cat >> $trgfile << EOF
</slide>