changeset 9377:ca27c3808c95

Update after move from cvs to git.
author Bruno Haible <bruno@clisp.org>
date Sun, 21 Oct 2007 14:20:08 +0200
parents 15917bb4d078
children f2eaa0229d7c
files ChangeLog gnulib-tool
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-21  Bruno Haible  <bruno@clisp.org>
+
+	* gnulib-tool (func_create_megatestdir): Determine the cvsdate from
+	Git's management files if the CVS files are not present.
+
 2007-10-20  Bruno Haible  <bruno@clisp.org>
 
 	* lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -3538,7 +3538,12 @@
   func_append megasubdirs "ALL"
 
   # Create autobuild.
-  cvsdate=`sh "$gnulib_dir/build-aux/mdate-sh" "$gnulib_dir/CVS/Entries" \
+  cvsdate=`if test -f "$gnulib_dir/CVS/Entries"; then \
+             vc_witness="$gnulib_dir/CVS/Entries"; \
+           else \
+             vc_witness="$gnulib_dir/.git/refs/heads/master"; \
+           fi; \
+           sh "$gnulib_dir/build-aux/mdate-sh" "$vc_witness" \
              | sed -e 's,January,01,'   -e 's,Jan,01,' \
                    -e 's,February,02,'  -e 's,Feb,02,' \
                    -e 's,March,03,'     -e 's,Mar,03,' \