]>
Commit | Line | Data |
---|---|---|
3de4c38d | 1 | #!/bin/bash |
7f52714a DB |
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 | ||
13 | SVNROOT=${SVNROOT:-"file:///svn/gcc"} | |
013d0fea | 14 | GETTHIS='libstdc++-v3/doc/html' |
7f52714a DB |
15 | WWWDIR=/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 | ||
22 | ||
23 | PATH=/usr/local/bin:$PATH | |
24 | export SVNROOT | |
25 | ||
26 | test -d $WWWDIR || /bin/mkdir $WWWDIR | |
27 | test -d $WWWDIR || { echo something is very wrong ; exit 1; } | |
28 | ||
29 | WORKDIR=/tmp/v3-doc-update.$$ | |
30 | /bin/rm -rf $WORKDIR | |
31 | /bin/mkdir $WORKDIR | |
32 | cd $WORKDIR | |
33 | ||
34 | ||
35 | # checkout all the HTML files, get down into an interesting directory | |
013d0fea JW |
36 | svn -q export $SVNROOT/trunk/$GETTHIS doc |
37 | cd doc | |
7f52714a DB |
38 | rm -f Makefile |
39 | ||
7f52714a DB |
40 | # copy the tree to the onlinedocs area, preserve directory structure |
41 | #find . -depth -print | cpio -pdv $WWWDIR | |
3de4c38d GP |
42 | find . -depth -print | cpio -pd $WWWDIR 2>&1 | grep -v "newer or same age version exists" |
43 | ||
44 | err=${PIPESTATUS[1]} | |
45 | if [ $err -gt 0 ]; then | |
46 | printf "\nCopying failed with error code %d.\n" $err | |
47 | fi | |
7f52714a DB |
48 | |
49 | cd / | |
50 | /bin/rm -rf $WORKDIR | |
51 |