File: wikifetch.sh

package info (click to toggle)
geda-doc 1%3A1.4.0-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,344 kB
  • ctags: 1,363
  • sloc: sh: 742; makefile: 145
file content (39 lines) | stat: -rwxr-xr-x 970 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash

#
# Retrieve wiki pages as html pages, creating a local tree of documents
# mirroring the original wiki structure. Wiki URLs are converted to local
# directories/filenames based on namespace/wiki-page naming conventions.
#
# Check calling arguments.

# website to fetch
site=http://geda.seul.org/wiki

if [ ! -d ../wip ]
then
	mkdir ../wip
fi

if [ ! -d ../wip ]
then
	echo "cannot create wip directory"
	exit 1
fi

# 
pavuk -logfile ../wip/pavuk_logfile.txt \
      -slogfile ../wip/pavuk_slogfile.txt \
      -cdir ../wip \
      -dont_leave_site \
      -noRobots \
      -index_name "index.html" \
      -httpad "+X_DOKUWIKI_DO: export_xhtml" \
      -cookie_file ../wip/cookies.txt \
      -cookie_send \
      -url_pattern http://geda.seul.org/wiki/\* \
      -skip_rpattern "(.*\?do=(_export|diff|revisions|backlink|index|export_.*))|_export|feed\.php.*" \
      -tr_chr_chr "?&*:" _ \
      -post_update \
      -fnrules F "*" "%h/%d/%b%E" "$site"