public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Replace update_web_docs_svn with update_web_docs_git
@ 2020-01-13 18:11 Joseph Myers
  2020-01-13 18:43 ` Joseph Myers
  2020-01-13 21:53 ` Jonathan Wakely
  0 siblings, 2 replies; 5+ messages in thread
From: Joseph Myers @ 2020-01-13 18:11 UTC (permalink / raw)
  To: gcc-patches

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.

Applied to mainline.

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.

diff --git a/maintainer-scripts/crontab b/maintainer-scripts/crontab
index 0cf342fdf3a..64edcc126fb 100644
--- a/maintainer-scripts/crontab
+++ b/maintainer-scripts/crontab
@@ -1,5 +1,5 @@
 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
 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
diff --git a/maintainer-scripts/update_web_docs_svn b/maintainer-scripts/update_web_docs_git
similarity index 95%
rename from maintainer-scripts/update_web_docs_svn
rename to maintainer-scripts/update_web_docs_git
index 16abfee3278..d87a5982f98 100755
--- a/maintainer-scripts/update_web_docs_svn
+++ b/maintainer-scripts/update_web_docs_git
@@ -3,14 +3,14 @@
 # Generate HTML documentation from GCC Texinfo docs.
 #
 # 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).
 
 set -e
 
 # Run this from /tmp.
-SVNROOT=${SVNROOT:-"file:///svn/gcc"}
-export SVNROOT
+GITROOT=${GITROOT:-"/git/gcc.git"}
+export GITROOT
 
 PATH=/usr/local/bin:$PATH
 
@@ -104,7 +104,7 @@ if [ ! -d $DOCSDIR ]; then
 fi
 
 if [ -z "$RELEASE" ]; then
-  RELEASE=trunk
+  RELEASE=master
 fi
 
 WORKDIR=/tmp/gcc-doc-update.$$
@@ -112,11 +112,12 @@ WORKDIR=/tmp/gcc-doc-update.$$
 rm -rf $WORKDIR
 mkdir $WORKDIR
 cd $WORKDIR
-if [ "$RELEASE" = "trunk" ]; then
-  svn -q export $SVNROOT/$RELEASE gcc
+if [ "$RELEASE" = "master" ]; then
+  git clone -q $GITROOT gcc
 else
-  svn -q export $SVNROOT/tags/$RELEASE gcc
+  git clone -q -b releases/gcc-$RELEASE $GITROOT gcc
 fi
+rm -rf gcc/.git
 
 # Remove all unwanted files.  This is needed to avoid packaging all the
 # sources instead of only documentation sources.
@@ -259,7 +260,7 @@ find jit \
 cd $DOCSDIR
 
 # Finally, generate the installation documentation
-if [ "$RELEASE" = "trunk" ]; then
+if [ "$RELEASE" = "master" ]; then
   SOURCEDIR=$WORKDIR/gcc/gcc/doc
   DESTDIR=$WWWBASE_PREFORMATTED/install
   export SOURCEDIR

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Replace update_web_docs_svn with update_web_docs_git
  2020-01-13 18:11 Replace update_web_docs_svn with update_web_docs_git Joseph Myers
@ 2020-01-13 18:43 ` Joseph Myers
  2020-01-13 21:53 ` Jonathan Wakely
  1 sibling, 0 replies; 5+ messages in thread
From: Joseph Myers @ 2020-01-13 18:43 UTC (permalink / raw)
  To: gcc-patches

I've also applied this corresponding web page update.

diff --git a/htdocs/releasing.html b/htdocs/releasing.html
index 5d08550c..48853f9c 100644
--- a/htdocs/releasing.html
+++ b/htdocs/releasing.html
@@ -89,9 +89,9 @@ the main web page, and add a proper news item there as well.</li>
 and add a link from the main <code>buildstat.html</code> page.</li>
 
 <li>Generate online documentation for the new release with
-<code>update_web_docs_svn</code>.  The appropriate command to run (as gccadmin)
-to generate the documentation would be <code>scripts/update_web_docs_svn
--rgcc_3_0_2_release -dgcc-3.0.2</code> (with the current version
+<code>update_web_docs_git</code>.  The appropriate command to run (as gccadmin)
+to generate the documentation would be <code>scripts/update_web_docs_git
+-r3.0.2 -dgcc-3.0.2</code> (with the current version
 number inserted).  Link to it from <code>onlinedocs/index.html</code>
 (but don't break URLs to documentation for previous releases even if
 you remove the links to it).  Create additionally

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Replace update_web_docs_svn with update_web_docs_git
  2020-01-13 18:11 Replace update_web_docs_svn with update_web_docs_git Joseph Myers
  2020-01-13 18:43 ` Joseph Myers
@ 2020-01-13 21:53 ` Jonathan Wakely
  2020-01-13 22:10   ` Joseph Myers
  1 sibling, 1 reply; 5+ messages in thread
From: Jonathan Wakely @ 2020-01-13 21:53 UTC (permalink / raw)
  To: Joseph Myers; +Cc: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 434 bytes --]

On 13/01/20 17:46 +0000, Joseph Myers wrote:
>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.
>
>Applied to mainline.

And this does the same for the update_web_docs_libstdcxx_svn script.

OK for trunk?

Should I do a `git pull` in the gcc-checkout dir on sourceware after
pushing this?


[-- Attachment #2: patch.txt --]
[-- Type: text/x-patch, Size: 3085 bytes --]

commit 837a33b15533232bf8c86b794e824be32899c2c4
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Mon Jan 13 21:26:54 2020 +0000

    Replace update_web_docs_libstdcxx_svn with update_web_docs_libstdcxx_git
    
    This patch replaces the update_web_docs_libstdcxx_svn script, that
    updates online documentation from its sources in the GCC repository, run
    once a day from cron, with update_web_docs_libstdcxx_git.
    
            * update_web_docs_libstdcxx_git: New file.
            * update_web_docs_libstdcxx_svn: Remove.
            * crontab: Use update_web_docs_libstdcxx_git.

diff --git a/maintainer-scripts/crontab b/maintainer-scripts/crontab
index 64edcc126fb..9470f3345bb 100644
--- a/maintainer-scripts/crontab
+++ b/maintainer-scripts/crontab
@@ -1,6 +1,6 @@
 16  0 * * * sh /home/gccadmin/scripts/update_version_git
 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_git
 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 * * 7 sh /home/gccadmin/scripts/gcc_release -s 10:master -l -d /sourceware/snapshot-tmp/gcc all
diff --git a/maintainer-scripts/update_web_docs_libstdcxx_svn b/maintainer-scripts/update_web_docs_libstdcxx_git
similarity index 84%
rename from maintainer-scripts/update_web_docs_libstdcxx_svn
rename to maintainer-scripts/update_web_docs_libstdcxx_git
+++ b/maintainer-scripts/update_web_docs_libstdcxx_git
@@ -1,16 +1,14 @@
 #!/bin/bash
 
 
-# "sh update_web_docs_libstdcxx.sh"
+# "sh update_web_docs_libstdcxx_git"
 # Checks out a copy of the libstdc++-v3 "inner" documentation and puts
 # it in the onlinedocs area.  For an initial description of "inner"
 # docs, see the thread starting with 
 #     http://gcc.gnu.org/ml/libstdc++/2000-11/msg00475.html
-#
-# Id: update_v3_web_docs.sh,v 1.4 2000/12/25 05:02:14 pedwards Exp
 #####################################################################
 
-SVNROOT=${SVNROOT:-"file:///svn/gcc"}
+GITROOT=${GITROOT:-"/git/gcc.git"}
 GETTHIS='libstdc++-v3/doc/html'
 WWWDIR=/www/gcc/htdocs/onlinedocs/libstdc++
 #WWWDIR=/tmp/fake-onlinedocs-testing
@@ -22,7 +20,7 @@ WWWDIR=/www/gcc/htdocs/onlinedocs/libstdc++
 FILTER="newer or same age version exists|0 blocks"
 
 PATH=/usr/local/bin:$PATH
-export SVNROOT
+export GITROOT
 
 test -d $WWWDIR || /bin/mkdir $WWWDIR
 test -d $WWWDIR || { echo something is very wrong ; exit 1; }
@@ -34,9 +32,8 @@ cd $WORKDIR
 
 
 # checkout all the HTML files, get down into an interesting directory
-svn -q export $SVNROOT/trunk/$GETTHIS doc
-cd doc
-rm -f Makefile
+git -C $GITROOT archive master $GETTHIS | tar xf -
+cd $GETTHIS
 
 # copy the tree to the onlinedocs area, preserve directory structure
 find . -depth -print | cpio -pd $WWWDIR 2>&1 | egrep -v "$FILTER"

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Replace update_web_docs_svn with update_web_docs_git
  2020-01-13 21:53 ` Jonathan Wakely
@ 2020-01-13 22:10   ` Joseph Myers
  2020-01-13 23:26     ` Jonathan Wakely
  0 siblings, 1 reply; 5+ messages in thread
From: Joseph Myers @ 2020-01-13 22:10 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: gcc-patches

On Mon, 13 Jan 2020, Jonathan Wakely wrote:

> On 13/01/20 17:46 +0000, Joseph Myers wrote:
> > 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.
> > 
> > Applied to mainline.
> 
> And this does the same for the update_web_docs_libstdcxx_svn script.
> 
> OK for trunk?

Yes.

> Should I do a `git pull` in the gcc-checkout dir on sourceware after
> pushing this?

Yes, and install the new crontab (right now the installed crontab has the 
call to update_web_docs_libstdcxx_svn commented out, but with this patch 
we'll be able to use the checked-in crontab verbatim again).

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Replace update_web_docs_svn with update_web_docs_git
  2020-01-13 22:10   ` Joseph Myers
@ 2020-01-13 23:26     ` Jonathan Wakely
  0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Wakely @ 2020-01-13 23:26 UTC (permalink / raw)
  To: Joseph Myers; +Cc: gcc-patches

On 13/01/20 21:42 +0000, Joseph Myers wrote:
>On Mon, 13 Jan 2020, Jonathan Wakely wrote:
>
>> On 13/01/20 17:46 +0000, Joseph Myers wrote:
>> > 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.
>> >
>> > Applied to mainline.
>>
>> And this does the same for the update_web_docs_libstdcxx_svn script.
>>
>> OK for trunk?
>
>Yes.
>
>> Should I do a `git pull` in the gcc-checkout dir on sourceware after
>> pushing this?
>
>Yes, and install the new crontab (right now the installed crontab has the
>call to update_web_docs_libstdcxx_svn commented out, but with this patch
>we'll be able to use the checked-in crontab verbatim again).

OK, that's done.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-01-13 22:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-13 18:11 Replace update_web_docs_svn with update_web_docs_git Joseph Myers
2020-01-13 18:43 ` Joseph Myers
2020-01-13 21:53 ` Jonathan Wakely
2020-01-13 22:10   ` Joseph Myers
2020-01-13 23:26     ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).