1#!/bin/bash 2 3 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 9# 10# Id: update_v3_web_docs.sh,v 1.4 2000/12/25 05:02:14 pedwards Exp 11##################################################################### 12 13SVNROOT=${SVNROOT:-"file:///svn/gcc"} 14GETTHIS='libstdc++-v3/doc/html' 15WWWDIR=/www/gcc/htdocs/onlinedocs/libstdc++ 16#WWWDIR=/tmp/fake-onlinedocs-testing 17 18 19## No more changes should be needed. Ha, right, whatever. 20##################################################################### 21 22FILTER="newer or same age version exists|0 blocks" 23 24PATH=/usr/local/bin:$PATH 25export SVNROOT 26 27test -d $WWWDIR || /bin/mkdir $WWWDIR 28test -d $WWWDIR || { echo something is very wrong ; exit 1; } 29 30WORKDIR=/tmp/v3-doc-update.$$ 31/bin/rm -rf $WORKDIR 32/bin/mkdir $WORKDIR 33cd $WORKDIR 34 35 36# checkout all the HTML files, get down into an interesting directory 37svn -q export $SVNROOT/trunk/$GETTHIS doc 38cd doc 39rm -f Makefile 40 41# copy the tree to the onlinedocs area, preserve directory structure 42find . -depth -print | cpio -pd $WWWDIR 2>&1 | egrep -v "$FILTER" 43 44err=${PIPESTATUS[1]} 45if [ $err -gt 0 ]; then 46 printf "\nCopying failed with error code %d.\n" $err 47fi 48 49cd / 50/bin/rm -rf $WORKDIR 51 52