Ran make update-po in gschem in prep for a new release (v1.5.4)
[geda-gaf/peter-b.git] / docs / scripts / wikifetch.sh
blob2c850ce2de73645eaafe899ff74ae89bc66c336c
1 #!/bin/bash
4 # Retrieve wiki pages as html pages, creating a local tree of documents
5 # mirroring the original wiki structure. Wiki URLs are converted to local
6 # directories/filenames based on namespace/wiki-page naming conventions.
8 # Check calling arguments.
10 # website to fetch
11 site=http://geda.seul.org/wiki
13 if [ ! -d ../wip ]
14 then
15 mkdir ../wip
18 if [ ! -d ../wip ]
19 then
20 echo "cannot create wip directory"
21 exit 1
25 pavuk -logfile ../wip/pavuk_logfile.txt \
26 -slogfile ../wip/pavuk_slogfile.txt \
27 -cdir ../wip \
28 -dont_leave_site \
29 -noRobots \
30 -index_name "index.html" \
31 -httpad "+X_DOKUWIKI_DO: export_xhtml" \
32 -cookie_file ../wip/cookies.txt \
33 -cookie_send \
34 -url_pattern http://geda.seul.org/wiki/\* \
35 -skip_rpattern "(.*\?do=(_export|diff|revisions|backlink|index|export_.*))|_export|feed\.php.*" \
36 -tr_chr_chr "?&*:" _ \
37 -post_update \
38 -sleep 1 \
39 -fnrules F "*" "%h/%d/%b%E" "$site"