Replace update_web_docs_svn with update_web_docs_git.
This patch replaces the update_web_docs_svn script, that updates online documentation from its sources in the GCC repository, run once a day from cron, with update_web_docs_git. * update_web_docs_git: New file. * update_web_docs_svn: Remove. * crontab: Use update_web_docs_svn.
This commit is contained in:
parent
ac4d87c25e
commit
33742a0a02
|
@ -1,3 +1,9 @@
|
||||||
|
2020-01-13 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
|
* update_web_docs_git: New file.
|
||||||
|
* update_web_docs_svn: Remove.
|
||||||
|
* crontab: Use update_web_docs_svn.
|
||||||
|
|
||||||
2020-01-13 Joseph Myers <joseph@codesourcery.com>
|
2020-01-13 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
* gcc_release: Use git instead of SVN.
|
* gcc_release: Use git instead of SVN.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
16 0 * * * sh /home/gccadmin/scripts/update_version_git
|
16 0 * * * sh /home/gccadmin/scripts/update_version_git
|
||||||
50 0 * * * sh /home/gccadmin/scripts/update_web_docs_svn
|
50 0 * * * sh /home/gccadmin/scripts/update_web_docs_git
|
||||||
55 0 * * * sh /home/gccadmin/scripts/update_web_docs_libstdcxx_svn
|
55 0 * * * sh /home/gccadmin/scripts/update_web_docs_libstdcxx_svn
|
||||||
32 22 * * 5 sh /home/gccadmin/scripts/gcc_release -s 8:releases/gcc-8 -l -d /sourceware/snapshot-tmp/gcc all
|
32 22 * * 5 sh /home/gccadmin/scripts/gcc_release -s 8:releases/gcc-8 -l -d /sourceware/snapshot-tmp/gcc all
|
||||||
32 22 * * 6 sh /home/gccadmin/scripts/gcc_release -s 9:releases/gcc-9 -l -d /sourceware/snapshot-tmp/gcc all
|
32 22 * * 6 sh /home/gccadmin/scripts/gcc_release -s 9:releases/gcc-9 -l -d /sourceware/snapshot-tmp/gcc all
|
||||||
|
|
|
@ -3,14 +3,14 @@
|
||||||
# Generate HTML documentation from GCC Texinfo docs.
|
# Generate HTML documentation from GCC Texinfo docs.
|
||||||
#
|
#
|
||||||
# If you want to run this on a machine different from gcc.gnu.org, you
|
# If you want to run this on a machine different from gcc.gnu.org, you
|
||||||
# may need to adjust SVNROOT and WWWBASE below (or override them via the
|
# may need to adjust GITROOT and WWWBASE below (or override them via the
|
||||||
# environment).
|
# environment).
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Run this from /tmp.
|
# Run this from /tmp.
|
||||||
SVNROOT=${SVNROOT:-"file:///svn/gcc"}
|
GITROOT=${GITROOT:-"/git/gcc.git"}
|
||||||
export SVNROOT
|
export GITROOT
|
||||||
|
|
||||||
PATH=/usr/local/bin:$PATH
|
PATH=/usr/local/bin:$PATH
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ if [ ! -d $DOCSDIR ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$RELEASE" ]; then
|
if [ -z "$RELEASE" ]; then
|
||||||
RELEASE=trunk
|
RELEASE=master
|
||||||
fi
|
fi
|
||||||
|
|
||||||
WORKDIR=/tmp/gcc-doc-update.$$
|
WORKDIR=/tmp/gcc-doc-update.$$
|
||||||
|
@ -112,11 +112,12 @@ WORKDIR=/tmp/gcc-doc-update.$$
|
||||||
rm -rf $WORKDIR
|
rm -rf $WORKDIR
|
||||||
mkdir $WORKDIR
|
mkdir $WORKDIR
|
||||||
cd $WORKDIR
|
cd $WORKDIR
|
||||||
if [ "$RELEASE" = "trunk" ]; then
|
if [ "$RELEASE" = "master" ]; then
|
||||||
svn -q export $SVNROOT/$RELEASE gcc
|
git clone -q $GITROOT gcc
|
||||||
else
|
else
|
||||||
svn -q export $SVNROOT/tags/$RELEASE gcc
|
git clone -q -b releases/gcc-$RELEASE $GITROOT gcc
|
||||||
fi
|
fi
|
||||||
|
rm -rf gcc/.git
|
||||||
|
|
||||||
# Remove all unwanted files. This is needed to avoid packaging all the
|
# Remove all unwanted files. This is needed to avoid packaging all the
|
||||||
# sources instead of only documentation sources.
|
# sources instead of only documentation sources.
|
||||||
|
@ -259,7 +260,7 @@ find jit \
|
||||||
cd $DOCSDIR
|
cd $DOCSDIR
|
||||||
|
|
||||||
# Finally, generate the installation documentation
|
# Finally, generate the installation documentation
|
||||||
if [ "$RELEASE" = "trunk" ]; then
|
if [ "$RELEASE" = "master" ]; then
|
||||||
SOURCEDIR=$WORKDIR/gcc/gcc/doc
|
SOURCEDIR=$WORKDIR/gcc/gcc/doc
|
||||||
DESTDIR=$WWWBASE_PREFORMATTED/install
|
DESTDIR=$WWWBASE_PREFORMATTED/install
|
||||||
export SOURCEDIR
|
export SOURCEDIR
|
Loading…
Reference in New Issue