File: genmanpage

package info (click to toggle)
apt-cross 0.12.0
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 180 kB
  • ctags: 65
  • sloc: perl: 1,760; xml: 610; sh: 52; makefile: 12
file content (14 lines) | stat: -rwxr-xr-x 622 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
xmllint --format apt-cross.1.xml --output apt-cross.1.xml
xsltproc -''-nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl apt-cross.1.xml
pod2man Cache/Apt/Package.pm > Cache::Apt::Package.3
pod2man Cache/Apt/Lookup.pm > Cache::Apt::Lookup.3
pod2man Cache/Apt/Config.pm > Cache::Apt::Config.3
if [ -d tmp/ ]; then
  xsltproc -o tmp/ -nonet http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl apt-cross.1.xml
  cd tmp/
  for i in `ls ./*.html`; do iconv -t utf-8 -f iso8859-1 $i > tmp;
     sed < tmp > $i -e 's:charset=ISO-8859-1:charset=UTF-8:'; done;
  rm -f tmp
fi