Changeset 6
- Timestamp:
- 09/01/05 17:52:14 (3 years ago)
- Location:
- trunk/doc
- Files:
-
- 2 modified
-
Makefile.am (modified) (1 diff)
-
export-wiki.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/Makefile.am
r2 r6 1 1 # Process this file with automake to create Makefile.in 2 2 3 MAINTAINERCLEANFILES = Makefile.in 3 MAINTAINERCLEANFILES = Makefile.in $(HTML) 4 4 5 5 EXTRA_DIST = README export-wiki.sh export-wiki.xsl $(HTML) 6 6 7 HTML= MailingLists.html OperatingSystems.html QuickStart.html \ 8 ResourcesLinks.html index.html trac.css 7 HTML= $(shell ls $(srcdir)/*.html $(srcdir)/*.css) -
trunk/doc/export-wiki.sh
r2 r6 7 7 export XSL=export-wiki.xsl 8 8 9 test -f `basename $0` 9 SRCDIR=. 10 10 11 rm -rf *.html *.css 11 if test -n "$1" 12 then 13 SRCDIR="$1" 14 fi 12 15 13 wget $SERVER/$WIKI/TitleIndex -O TitleIndex.tmp 16 test -f "$SRCDIR"/`basename $0` 14 17 15 grep "\"/$WIKI/[^\"]*\"" TitleIndex.tmp \ 18 if ! test -w "$SRCDIR" 19 then 20 exit 0 21 fi 22 23 rm -rf "$SRCDIR"/*.html "$SRCDIR"/*.css 24 25 wget --non-verbose $SERVER/$WIKI/TitleIndex -O "$SRCDIR"/TitleIndex.tmp 26 27 grep "\"/$WIKI/[^\"]*\"" "$SRCDIR"/TitleIndex.tmp \ 16 28 |sed -e "s#.*\"/$WIKI/\([^\"]*\)\".*#\1#g" \ 17 > WikiWords.tmp29 > "$SRCDIR"/WikiWords.tmp 18 30 sed -e /^Trac/d -e /^Wiki/d -e /^TitleIndex/d -e /^RecentChanges/d \ 19 -e /^CamelCase/d -e /^SandBox/d -i WikiWords.tmp31 -e /^CamelCase/d -e /^SandBox/d -i "$SRCDIR"/WikiWords.tmp 20 32 21 for A in WikiStart `cat WikiWords.tmp`33 for A in WikiStart `cat "$SRCDIR"/WikiWords.tmp` 22 34 do 23 35 F=`echo $A|sed -e 's/\//_/g'` 24 wget $SERVER/$WIKI/$A -O$F.tmp25 xsltproc --output $F.html $XSL$F.tmp36 wget --non-verbose $SERVER/$WIKI/$A -O "$SRCDIR"/$F.tmp 37 xsltproc --output "$SRCDIR"/$F.html "$SRCDIR"/$XSL "$SRCDIR"/$F.tmp 26 38 sed -e "s#<a href=\"/$WIKI/\([^\"]*\)\"#<a href=\"\1.html\"#g" \ 27 -i $F.html39 -i "$SRCDIR"/$F.html 28 40 done 29 41 30 mv WikiStart.htmlindex.html42 mv "$SRCDIR"/WikiStart.html "$SRCDIR"/index.html 31 43 32 wget http://www.opensc.org/trac/css/trac.css 44 wget --non-verbose http://www.opensc.org/trac/css/trac.css \ 45 -O "$SRCDIR"/trac.css 33 46 34 rm *.tmp47 rm "$SRCDIR"/*.tmp
