| 1 | #!/bin/bash |
| 2 | |
| 3 | # Create the documentation |
| 4 | # |
| 5 | # We will be in the root directory of a just-built distribution |
| 6 | # when called normally. |
| 7 | # |
| 8 | |
| 9 | ( |
| 10 | cd doc |
| 11 | |
| 12 | if [ -f makefile -o -f Makefile ]; then |
| 13 | make install |
| 14 | fi |
| 15 | |
| 16 | for f in *.txt |
| 17 | do |
| 18 | mwconv -t text $f > ../dist/doc/$f |
| 19 | done |
| 20 | |
| 21 | # Use the actual options help file. |
| 22 | cp ../resources/help/en/options ../dist/doc/options.txt |
| 23 | |
| 24 | DOC=~steve/www/web/mkgmap/content/doc |
| 25 | WEB_DOC_PDF=~steve/www/mkgmap.org.uk/docroot/doc/pdf |
| 26 | mkdir -p $WEB_DOC_PDF |
| 27 | cp *.txt $DOC |
| 28 | cp styles/style-manual.pdf $WEB_DOC_PDF |
| 29 | ) |