Bumped versions to 1.3.0/20071229/32:0:0 for the next development snapshot
[geda-gaf/whiteaudio.git] / docs / scripts / wikifetch.sh
blob8b72692ad834bddb22cff72297c19d4f6ec77a21
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 -fnrules F "*" "%h/%d/%b%E" "$site"