| build.sh - gopherhole - My gopherhole source code. | |
| git clone git://jay.scot/gopherhole | |
| Log | |
| Files | |
| Refs | |
| --- | |
| build.sh (410B) | |
| --- | |
| 1 #!/bin/sh | |
| 2 | |
| 3 mkdir -p txt | |
| 4 | |
| 5 for file in phlog/mdoc/*.7; do | |
| 6 base="${file##*/}" | |
| 7 base="${base%.7}" | |
| 8 | |
| 9 txt_file="phlog/txt/${base}.txt" | |
| 10 | |
| 11 if [ -f "$txt_file" ] && [ "$file" -nt "$txt_file" ]; then | |
| 12 echo "Updating $txt_file..." | |
| 13 mandoc -T utf8 "$file" >"$txt_file" | |
| 14 elif [ ! -f "$txt_file" ]; then | |
| 15 echo "Generating $txt_file..." | |
| 16 mandoc -T utf8 "$file" >"$txt_file" | |
| 17 else | |
| 18 echo "Skipping $txt_file..." | |
| 19 fi | |
| 20 done |