[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: Makefile.am
User: ahvezda
Date: 06/08/14 23:20:43
Added: . Makefile.am postproc.sh wikifetch.sh
Log:
Added wiki fetch and post processing scripts.
Revision Changes Path
1.1 eda/geda/gaf/docs/scripts/Makefile.am
Index: Makefile.am
===================================================================
## $Id: Makefile.am,v 1.1 2006/08/15 03:20:43 ahvezda Exp $
##
EXTRA_DIST = postproc.sh wikifetch.sh
MOSTLYCLEANFILES = *.log *~
CLEANFILES = *.log *~
DISTCLEANFILES = *.log core FILE *~ prototype.bak \
geda_totexi notangle_guile
MAINTAINERCLEANFILES = *.log *~ Makefile.in configure
1.1 eda/geda/gaf/docs/scripts/postproc.sh
Index: postproc.sh
===================================================================
#!/bin/sh
files=`find . -name \*.html -print`
for i in $files
do
echo $i
mv -f $i $i.old
cat $i.old | sed '/\<script type/d' > $i
mv -f $i $i.old2
cat $i.old2 | sed 's%media="screen" type="text/css" href="http://geda.seul.org/wiki/lib/exe/css.php"%media="screen" type="text/css" href="lib/exe/css"%g' | sed 's%media="print" type="text/css" href="http://geda.seul.org/wiki/lib/exe/css.php?print=1"%media="print" type="text/css" href="lib/exe/001css"%g' > $i
done
1.1 eda/geda/gaf/docs/scripts/wikifetch.sh
Index: wikifetch.sh
===================================================================
#!/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.
if [ $# -ne 1 ] ; then
echo " "
echo " Error: Incorrect arguments"
echo " "
echo " Usage: sh pavuk.sh {wiki's URL}"
echo " where: (wiki's URL} -- The URL of the wiki's start page"
echo " (e.g., http://geda.seul.org/wiki)."
echo " "
exit 1
fi
#
pavuk -logfile /tmp/pavuk/pavuk_logfile.txt \
-slogfile /tmp/pavuk/pavuk_slogfile.txt \
-cdir /tmp/pavuk \
-dont_leave_site \
-noRobots \
-index_name "index.html" \
-httpad "+X_DOKUWIKI_DO: export_xhtml" \
-cookie_file /tmp/pavuk/cookies.txt \
-cookie_send \
-url_pattern http://geda.seul.org/wiki/\* \
-skip_rpattern "(.*\?do=(diff|revisions|backlink|index|export_.*))|feed\.php.*" \
-tr_chr_chr "?&*:" _ \
-post_update \
-fnrules F "*" "%h/%d/%b%E" "$1"
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs