4 # "sh update_web_docs_libstdcxx.sh"
5 # Checks out a copy of the libstdc++-v3 "inner" documentation and puts
6 # it in the onlinedocs area. For an initial description of "inner"
7 # docs, see the thread starting with
8 # http://gcc.gnu.org/ml/libstdc++/2000-11/msg00475.html
10 # Id: update_v3_web_docs.sh,v 1.4 2000/12/25 05:02:14 pedwards Exp
11 #####################################################################
13 SVNROOT
=${SVNROOT:-"file:///svn/gcc"}
14 GETTHIS
='libstdc++-v3/doc/html'
15 WWWDIR
=/www
/gcc
/htdocs
/onlinedocs
/libstdc
++
16 #WWWDIR=/tmp/fake-onlinedocs-testing
19 ## No more changes should be needed. Ha, right, whatever.
20 #####################################################################
23 PATH
=/usr
/local
/bin
:$PATH
26 test -d $WWWDIR ||
/bin
/mkdir
$WWWDIR
27 test -d $WWWDIR ||
{ echo something is very wrong
; exit 1; }
29 WORKDIR
=/tmp
/v3-doc-update.$$
35 # checkout all the HTML files, get down into an interesting directory
36 svn
-q export $SVNROOT/trunk
/$GETTHIS doc
40 # build a compressed copy of the HTML, preserve directory structure
41 for file in `find . -name "*.html" -print`; do
42 gzip --best < $file > $file.gz
45 # copy the tree to the onlinedocs area, preserve directory structure
46 #find . -depth -print | cpio -pdv $WWWDIR
47 find .
-depth -print |
cpio -pd $WWWDIR > /dev
/null
2>&1