From: Bruno Haible Date: Sun, 21 Oct 2007 12:20:08 +0000 (+0200) Subject: Update after move from cvs to git. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c580832d28bc3e7f2b9701375685f118244c0f6e;p=pspp Update after move from cvs to git. --- diff --git a/ChangeLog b/ChangeLog index 8060c7b864..7d694d206b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-10-21 Bruno Haible + + * 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 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for diff --git a/gnulib-tool b/gnulib-tool index 09059fcedc..c091a3ea4e 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -3538,7 +3538,12 @@ func_create_megatestdir () 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,' \