File: add.sh

package info (click to toggle)
xorg-docs 1%3A1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,660 kB
  • ctags: 136
  • sloc: sh: 3,778; makefile: 528; awk: 91
file content (13 lines) | stat: -rw-r--r-- 442 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
#
# $XFree86: xc/programs/Xserver/hw/xfree86/doc/sgml/add.sh,v 1.2 2003/10/18 13:29:34 dawes Exp $
#
name=`basename $1 .sgml`
sgmlfmt -f index $name.sgml | \
	sed -e 's,<title>,<item><htmlurl name=",' \
	    -e 's,</title>," url="'$name.html'"> <htmlurl name="[PDF]" url="'../PDF/$name.pdf'">,' \
	    -e 's,<author>,<!-- ,' \
	    -e 's,</author>, -->,' \
	    -e 's,<date>,<!-- ,' \
	    -e 's,</date>, -->,' >> index.sgml
exit 0