Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- build()
- {
- case $1 in
- manpage|tex|text|htmlhelp|ps|pdf|dvi|epub)
- a2x --format $1 --dblatex-opts="-b dvips" -L $2
- ;;
- html5)
- asciidoc -o ${2%adoc}html -b $1 $2
- ;;
- docbook)
- asciidoc -o ${2%adoc}xml -b $1 $2
- ;;
- chm)
- buildchm.sh ${2%adoc}hhp
- ;;
- *)
- echo "format hasn't been set up yet"
- exit 1
- ;;
- esac
- }
- if [ "$2" ];then
- build "$1" "$2"
- else
- for i in *.adoc;do
- build "$1" "$i"
- done
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement