debian/htdigconfig
raw| 1 | #!/bin/sh -e |
| 2 | |
| 3 | echo -n "Creating endings database for ht://Dig search engine..." |
| 4 | |
| 5 | # Only create the endings database if it doesn't already exist. |
| 6 | # This database is static, so even if pages change, this database will not |
| 7 | # need to be rebuilt. |
| 8 | |
| 9 | if [ ! -f /var/lib/htdig/word2root.db ] |
| 10 | then |
| 11 | htfuzzy $verbose endings |
| 12 | fi |
| 13 | |
| 14 | if [ ! -f /var/lib/htdig/synonyms.db ] |
| 15 | then |
| 16 | htfuzzy $verbose synonyms |
| 17 | fi |
| 18 | |
| 19 | echo "done." |
| 20 |