]> git.ipfire.org Git - thirdparty/gcc.git/blame - maintainer-scripts/update_web_docs_libstdcxx_git
[Ada] More efficient System.Random_Numbers.Random_Discrete for 32-bit types
[thirdparty/gcc.git] / maintainer-scripts / update_web_docs_libstdcxx_git
CommitLineData
3de4c38d 1#!/bin/bash
7f52714a
DB
2
3
97e2f333 4# "sh update_web_docs_libstdcxx_git"
7f52714a
DB
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
7f52714a
DB
9#####################################################################
10
97e2f333 11GITROOT=${GITROOT:-"/git/gcc.git"}
013d0fea 12GETTHIS='libstdc++-v3/doc/html'
7f52714a
DB
13WWWDIR=/www/gcc/htdocs/onlinedocs/libstdc++
14#WWWDIR=/tmp/fake-onlinedocs-testing
15
16
17## No more changes should be needed. Ha, right, whatever.
18#####################################################################
19
23ebaa42 20FILTER="newer or same age version exists|0 blocks"
7f52714a
DB
21
22PATH=/usr/local/bin:$PATH
97e2f333 23export GITROOT
7f52714a
DB
24
25test -d $WWWDIR || /bin/mkdir $WWWDIR
26test -d $WWWDIR || { echo something is very wrong ; exit 1; }
27
28WORKDIR=/tmp/v3-doc-update.$$
29/bin/rm -rf $WORKDIR
30/bin/mkdir $WORKDIR
31cd $WORKDIR
32
33
34# checkout all the HTML files, get down into an interesting directory
97e2f333
JW
35git -C $GITROOT archive master $GETTHIS | tar xf -
36cd $GETTHIS
7f52714a 37
7f52714a 38# copy the tree to the onlinedocs area, preserve directory structure
23ebaa42 39find . -depth -print | cpio -pd $WWWDIR 2>&1 | egrep -v "$FILTER"
3de4c38d
GP
40
41err=${PIPESTATUS[1]}
42if [ $err -gt 0 ]; then
43 printf "\nCopying failed with error code %d.\n" $err
44fi
7f52714a
DB
45
46cd /
47/bin/rm -rf $WORKDIR
48