Skip to content

Commit

Permalink
Allow building just the txt manual
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed Sep 20, 2017
1 parent b9cd8c7 commit 6042a8e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docbook-manual.py
Expand Up @@ -16,7 +16,7 @@

# Script options
options = "hda"
long_options = ["help", "delete", "all", "pdf", "html", "release"]
long_options = ["help", "delete", "html", "pdf", "txt", "release", "all"]


def usage():
Expand All @@ -26,6 +26,7 @@ def usage():
-d | --delete Delete install directory before building
--html Build HTML manual
--pdf Build PDF manual
--txt Build TXT manual
--release Build single file types used for
release tarballs
-a | --all Build all manual types'''
Expand Down Expand Up @@ -67,6 +68,10 @@ def main():
types[MAKE] = "pdf"
types[PUBLICAN] = types[MAKE]

elif opt == "--txt":
types[MAKE] = "text"
types[PUBLICAN] = "txt"

elif opt == "--release":
types[MAKE] = "html_onefile pdf text"
types[PUBLICAN] = "html-desktop,pdf,txt"
Expand Down

0 comments on commit 6042a8e

Please sign in to comment.