Changeset 6

Show
Ignore:
Timestamp:
09/01/05 17:52:14 (3 years ago)
Author:
aj
Message:

updated generation (and cleanup) of documentation.

Location:
trunk/doc
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/doc/Makefile.am

    r2 r6  
    11# Process this file with automake to create Makefile.in 
    22 
    3 MAINTAINERCLEANFILES = Makefile.in 
     3MAINTAINERCLEANFILES = Makefile.in $(HTML) 
    44 
    55EXTRA_DIST = README export-wiki.sh export-wiki.xsl $(HTML) 
    66 
    7 HTML= MailingLists.html OperatingSystems.html QuickStart.html \ 
    8         ResourcesLinks.html index.html trac.css 
     7HTML= $(shell ls $(srcdir)/*.html $(srcdir)/*.css) 
  • trunk/doc/export-wiki.sh

    r2 r6  
    77export XSL=export-wiki.xsl 
    88 
    9 test -f `basename $0` 
     9SRCDIR=. 
    1010 
    11 rm -rf *.html *.css 
     11if test -n "$1" 
     12then 
     13        SRCDIR="$1" 
     14fi 
    1215 
    13 wget $SERVER/$WIKI/TitleIndex -O TitleIndex.tmp 
     16test -f "$SRCDIR"/`basename $0` 
    1417 
    15 grep "\"/$WIKI/[^\"]*\"" TitleIndex.tmp \ 
     18if ! test -w "$SRCDIR" 
     19then 
     20        exit 0 
     21fi 
     22 
     23rm -rf "$SRCDIR"/*.html "$SRCDIR"/*.css 
     24 
     25wget --non-verbose $SERVER/$WIKI/TitleIndex -O "$SRCDIR"/TitleIndex.tmp 
     26 
     27grep "\"/$WIKI/[^\"]*\"" "$SRCDIR"/TitleIndex.tmp \ 
    1628        |sed -e "s#.*\"/$WIKI/\([^\"]*\)\".*#\1#g" \ 
    17         > WikiWords.tmp 
     29        > "$SRCDIR"/WikiWords.tmp 
    1830sed -e /^Trac/d -e /^Wiki/d -e /^TitleIndex/d -e /^RecentChanges/d \ 
    19         -e /^CamelCase/d -e /^SandBox/d -i WikiWords.tmp 
     31        -e /^CamelCase/d -e /^SandBox/d -i "$SRCDIR"/WikiWords.tmp 
    2032 
    21 for A in WikiStart `cat WikiWords.tmp` 
     33for A in WikiStart `cat "$SRCDIR"/WikiWords.tmp` 
    2234do 
    2335        F=`echo $A|sed -e 's/\//_/g'` 
    24         wget $SERVER/$WIKI/$A  -O $F.tmp 
    25         xsltproc --output $F.html $XSL $F.tmp 
     36        wget --non-verbose $SERVER/$WIKI/$A  -O "$SRCDIR"/$F.tmp 
     37        xsltproc --output "$SRCDIR"/$F.html "$SRCDIR"/$XSL "$SRCDIR"/$F.tmp 
    2638        sed -e "s#<a href=\"/$WIKI/\([^\"]*\)\"#<a href=\"\1.html\"#g" \ 
    27                 -i $F.html 
     39                -i "$SRCDIR"/$F.html 
    2840done 
    2941 
    30 mv WikiStart.html index.html 
     42mv "$SRCDIR"/WikiStart.html "$SRCDIR"/index.html 
    3143 
    32 wget http://www.opensc.org/trac/css/trac.css 
     44wget --non-verbose http://www.opensc.org/trac/css/trac.css \ 
     45        -O "$SRCDIR"/trac.css 
    3346 
    34 rm *.tmp 
     47rm "$SRCDIR"/*.tmp