/[public]/psiconv/trunk/formats/xhtml_links.sh
ViewVC logotype

Annotation of /psiconv/trunk/formats/xhtml_links.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 195 - (hide annotations)
Wed Feb 4 11:35:35 2004 UTC (20 years, 10 months ago) by frodo
File MIME type: application/x-sh
File size: 808 byte(s)
(Frodo) Format documentation work

  * Uploaded newest Format documentation
  * Split generate_html.sh into xhtml and html4 specific versions
  * Changed gen_xhtml and gen_html4 to combine spans that have the
    same layout codes
  * Changed gen_xhtml and gen_html4 not to emit empty spans

1 frodo 195 #! /bin/sh
2    
3     generate_links()
4     {
5     #local index_file name file lineno
6    
7     index_file="$1"
8    
9     command='sed '
10     {
11     while read file lineno name; do
12     command="$command -e "\''s,\['"$name"'\],<a name="'"$name"'"/>,g'\'
13     command="$command -e "\''s,&#xab;'"$name"'&#xbb;,<a href="'"$file"\#"$name"'">'"$name"'</a>,g'\'
14     done
15     } < "$index_file"
16    
17     eval "$command"
18     }
19    
20     generate_headers()
21     {
22     # local index_file name this_file
23    
24     index_file_generate_headers="$1"
25     this_file_generate_headers=`echo $2 | sed 's,.*/,,' | sed 's,\..*$,,'`
26    
27     name_generate_headers=`grep "^$this_file_generate_headers" "$index_file_generate_headers" | head -1 | sed s,'^[^ ]* [^ ]* ,,'`
28     sed -e 's,<title>.*</title>,<title>'"$name_generate_headers"'</title>,'
29     }
30    
31    
32     cat "$2" | generate_links "$1" | generate_headers "$1" "$2"

Properties

Name Value
svn:executable *

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26