[go: up one dir, main page]

File: txt

package info (click to toggle)
docbook-utils 0.6.9-12
  • links: PTS
  • area: main
  • in suites: woody
  • size: 696 kB
  • ctags: 35
  • sloc: perl: 1,010; sh: 454; makefile: 123
file content (20 lines) | stat: -rw-r--r-- 501 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Backend to convert something into ASCII text
# Send any comments to Eric Bischoff <eric@caldera.de>
# This program is under GPL license. See LICENSE file for details.

# Convert to HTML
$SGML_JADE -t sgml -V nochunks -o ${SGML_FILE_NAME}.html -d SGML_STYLESHEET $SGML_FILE
if [ $? -ne 0 ]
then exit 1
fi

# Convert from HTML to ASCII
lynx -force_html -dump ${SGML_FILE_NAME}.html > ${SGML_FILE_NAME}.txt
if [ $? -ne 0 ]
then
  rm ${SGML_FILE_NAME}.html
  exit 2
fi
rm ${SGML_FILE_NAME}.html

exit 0