bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

build-aux/gnu-web-update-doc-update-git


From: Assaf Gordon
Subject: build-aux/gnu-web-update-doc-update-git
Date: Thu, 06 Nov 2014 19:25:18 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

Hello gnulib developers,

I'm experimenting with GIT-based repositories for the web pages at 
http://www.gnu.org/software/XXX .

For details see here:
 http://lists.gnu.org/archive/html/savannah-hackers-public/2014-11/msg00001.html

The current gnulib script 'build-aux/gnu-web-update-doc-update' provides 
auto-update for manual pages using the current CVS repositories.

I'd like to ask for your feedback regarding the attached script, which does the 
same but pushes updates to the GIT repositories.

The repositories are already in place, and this script can be used.

Updated repositories will appear on the mock-up sever at:
    http://gnu.housegordon.org/software/<PROJECT>/manual/

You are welcomed to experiment and push changes using the script - before going to 
"production" the repositories will be reset to their current CVS state.

This is a separate script because only project wishing to switch to GIT will do 
so.
Other projects will keep using CVS.


Thanks,
 - Assaf


The differences between the CVS and GIT scripts are:
====
--- build-aux/gnu-web-doc-update        2014-07-09 19:10:24.681544245 -0400
+++ build-aux/gnu-web-doc-update-git    2014-11-06 16:00:19.833259408 -0500
@@ -167,23 +167,13 @@ cd "$srcdir"
 set +e
tmp=$(mktemp -d web-doc-update.XXXXXX) || exit 1
-( cd $tmp \
-    && $CVS -d address@hidden:/webcvs/$pkg co $pkg )
-$RSYNC -avP "$builddir"/doc/manual/ $tmp/$pkg/manual
-
+$GIT clone --quiet address@hidden:/srv/git/web/$pkg $tmp/$pkg || exit 1
+$RSYNC -avP "$builddir"/doc/manual/ $tmp/$pkg/$pkg/manual || exit 1
 (
-  cd $tmp/$pkg/manual
-
-  # Add all the files.  This is simpler than trying to add only the
-  # new ones because of new directories: it would require iterating on
-  # adding the outer directories, and then their contents.
-  #
-  # find guarantees that we add outer directories first.
-  find . -name CVS -prune -o -print             \
-    | $XARGS --no-run-if-empty -- $dryrun $CVS add -ko
-
-  $dryrun $CVS ci -m $version
-)
+  cd $tmp/$pkg
+  $dryrun $GIT commit --quiet --all -m "Updated Manual for $version" \
+      && $dryrun $GIT push
+) || exit 1

 # Local variables:
 # eval: (add-hook 'write-file-hooks 'time-stamp)
====

Attachment: gnulib-doc-update-git.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]