source: trunk/gcc/maintainer-scripts/update_web_docs_libstdcxx

Last change on this file was 2, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#!/bin/sh
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
13CVSROOT=/cvs/gcc
14GETTHIS='gcc/libstdc++-v3/docs/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
22
23PATH=/usr/local/bin:$PATH
24export CVSROOT
25
26test -d $WWWDIR || /bin/mkdir $WWWDIR
27test -d $WWWDIR || { echo something is very wrong ; exit 1; }
28
29WORKDIR=/tmp/v3-doc-update.$$
30/bin/rm -rf $WORKDIR
31/bin/mkdir $WORKDIR
32cd $WORKDIR
33
34
35# checkout all the HTML files, get down into an interesting directory
36cvs -Q co $GETTHIS
37cd $GETTHIS
38
39# pity the cvs 'export' would require a tag... maybe gcc_latest_snapshot
40# would be recent enough? anyhow, get rid of the CVS dirs in the tree
41find . -type d -name CVS -print | xargs rm -r Makefile
42
43# build a compressed copy of the HTML, preserve directory structure
44for file in `find . -name "*.html" -print`; do
45 gzip --best < $file > $file.gz
46done
47
48# copy the tree to the onlinedocs area, preserve directory structure
49#find . -depth -print | cpio -pdv $WWWDIR
50find . -depth -print | cpio -pd $WWWDIR > /dev/null 2>&1
51
52cd /
53/bin/rm -rf $WORKDIR
54
Note: See TracBrowser for help on using the repository browser.