OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright 2015 The Crashpad Authors. All rights reserved. | 3 # Copyright 2015 The Crashpad Authors. All rights reserved. |
4 # | 4 # |
5 # Licensed under the Apache License, Version 2.0 (the "License"); | 5 # Licensed under the Apache License, Version 2.0 (the "License"); |
6 # you may not use this file except in compliance with the License. | 6 # you may not use this file except in compliance with the License. |
7 # You may obtain a copy of the License at | 7 # You may obtain a copy of the License at |
8 # | 8 # |
9 # http://www.apache.org/licenses/LICENSE-2.0 | 9 # http://www.apache.org/licenses/LICENSE-2.0 |
10 # | 10 # |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 # Create “man” output. | 81 # Create “man” output. |
82 # | 82 # |
83 # AsciiDoc 8.6.9 produces harmless incorrect warnings each time this is run: | 83 # AsciiDoc 8.6.9 produces harmless incorrect warnings each time this is run: |
84 # “a2x: WARNING: --destination-dir option is only applicable to HTML based | 84 # “a2x: WARNING: --destination-dir option is only applicable to HTML based |
85 # outputs”. https://github.com/asciidoc/asciidoc/issues/44 | 85 # outputs”. https://github.com/asciidoc/asciidoc/issues/44 |
86 a2x \ | 86 a2x \ |
87 --attribute mansource=Crashpad \ | 87 --attribute mansource=Crashpad \ |
88 --attribute manversion="${version}" \ | 88 --attribute manversion="${version}" \ |
89 --attribute manmanual="Crashpad Manual" \ | 89 --attribute manmanual="Crashpad Manual" \ |
90 --attribute revdate="${git_date}" \ | 90 --attribute revdate="${git_date}" \ |
| 91 --asciidoc-opts=--conf-file=doc/asciidoc.conf \ |
91 --doctype manpage \ | 92 --doctype manpage \ |
92 --format manpage \ | 93 --format manpage \ |
93 --destination-dir "${output_dir}/man" \ | 94 --destination-dir "${output_dir}/man" \ |
94 "${input}" | 95 "${input}" |
95 | 96 |
96 # For PDF output, use an a2x command like the one above, with these options: | 97 # For PDF output, use an a2x command like the one above, with these options: |
97 # --format pdf --fop --destination-dir "${output_dir}/pdf" | 98 # --format pdf --fop --destination-dir "${output_dir}/pdf" |
98 done | 99 done |
OLD | NEW |