gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 214/254: updatemanpages.pl: error out on too old gi


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 214/254: updatemanpages.pl: error out on too old git version
Date: Sat, 17 Jun 2017 16:54:06 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to annotated tag gnurl-7.54.1
in repository gnurl.

commit 191349eb75b06728760879f374fb8e78ddd9781f
Author: Daniel Stenberg <address@hidden>
AuthorDate: Sat Jun 3 00:45:02 2017 +0200

    updatemanpages.pl: error out on too old git version
---
 scripts/updatemanpages.pl | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/scripts/updatemanpages.pl b/scripts/updatemanpages.pl
index cf26d4ffe..6a58dbd42 100755
--- a/scripts/updatemanpages.pl
+++ b/scripts/updatemanpages.pl
@@ -6,7 +6,7 @@
 #                            | (__| |_| |  _ <| |___
 #                             \___|\___/|_| \_\_____|
 #
-# Copyright (C) 1998 - 2016, Daniel Stenberg, <address@hidden>, et al.
+# Copyright (C) 1998 - 2017, Daniel Stenberg, <address@hidden>, et al.
 #
 # This software is licensed as described in the file COPYING, which
 # you should have received as part of this distribution. The terms
@@ -235,6 +235,13 @@ if(!$curlver) {
   printargs();
 }
 
+# check to see that the git command works, it requires git 2.6 something
+my $gitcheck = `git log -1 --date="format:%B %d, %Y" $dirlist[0] 2>/dev/null`;
+if(length($gitcheck) < 1) {
+    print "git version too old or $dirlist[0] is a bad argument\n";
+    exit;
+}
+
 # Look in each directory.
 
 my $dir_handle;

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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