projects
/
crypto.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e1cca75
)
updates.
author
Pekka Riikonen
<priikone@silcnet.org>
Sun, 12 Aug 2001 14:36:23 +0000
(14:36 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Sun, 12 Aug 2001 14:36:23 +0000
(14:36 +0000)
scripts/silcdoc/silcdoc
patch
|
blob
|
history
diff --git
a/scripts/silcdoc/silcdoc
b/scripts/silcdoc/silcdoc
index c66ba886503d2fa0ce9d6cd2ee4041f19a708218..db120ed6301706da2fb561e8a4e30994d346fd60 100755
(executable)
--- a/
scripts/silcdoc/silcdoc
+++ b/
scripts/silcdoc/silcdoc
@@
-66,9
+66,8
@@
if [ "$TYPE" = "HTML" ]; then
rm -f $DST/$i_index.tmpl
done
rm -f $DST/$i_index.tmpl
done
- # Generate
the index and TOC files
from the DIRECTORY files
+ # Generate
indes template
from the DIRECTORY files
files=`find $SRC -name "DIRECTORY"`
files=`find $SRC -name "DIRECTORY"`
- touch $DST/index.html.tmp
for i in $files
do
# Get library name
for i in $files
do
# Get library name
@@
-78,15
+77,25
@@
if [ "$TYPE" = "HTML" ]; then
# Generate links to template file that can be included into various
# places on the webpage.
# Generate links to template file that can be included into various
# places on the webpage.
- echo ">> <A HREF="$fname">$name</A>" >>$DST/index.tmpl
-
- # Generate links for this library
+ echo "> <A HREF="$fname">$name</A><BR>" >>$DST/index.tmpl
for k in $links
do
n=`grep $k $i |cut -d= -f2 |cut -d: -f2`
echo "<LI><A HREF="$k">$n</A>" >>$DST/$fname.links
for k in $links
do
n=`grep $k $i |cut -d= -f2 |cut -d: -f2`
echo "<LI><A HREF="$k">$n</A>" >>$DST/$fname.links
- echo "&nb
ps; > <A HREF="$k">$n</A
>" >>$DST/index.tmpl
+ echo "&nb
sp; > <A HREF="$k">$n</A><BR
>" >>$DST/index.tmpl
done
done
+ done
+
+ # Generate the index and TOC files from the DIRECTORY files
+ files=`find $SRC -name "DIRECTORY"`
+ for i in $files
+ do
+ # Get library name
+ name=`grep "@LIBRARY=" $i |cut -d= -f2`
+ fname=`grep "@FILENAME=" $i |cut -d= -f2`
+ links=`grep "@LINK=" $i |cut -d= -f2 |cut -d: -f1`
+
+ # Generate links for this library
sed -e "/@LINKS@/ r $DST/$fname.links" -e s/@LINKS@//g $i >$DST/$fname
# Generate the TOC file for the library
sed -e "/@LINKS@/ r $DST/$fname.links" -e s/@LINKS@//g $i >$DST/$fname
# Generate the TOC file for the library