File: asciidoc2text.sh

package info (click to toggle)
asciidoc 6.0.3-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,604 kB
  • ctags: 367
  • sloc: xml: 8,201; python: 3,518; makefile: 13; sh: 8
file content (12 lines) | stat: -rwxr-xr-x 400 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# asciidoc2text - convert AsciiDoc source file to text file on stdout
# Requires asciidoc2text.conf in the same directory.

if [ "$1" = "--help" -o $# -lt 1 ]; then
	echo asciidoc2text - convert AsciiDoc source file to text file on stdout
	echo usage: "`basename $0` [asciidoc-options] filename"
	exit 1
fi

asciidoc -f `dirname $0`/asciidoc2text.conf -b html -o - $@ | \
lynx -dump -stdin