1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

updatemanpages.pl: error out on too old git version

This commit is contained in:
Daniel Stenberg 2017-06-03 00:45:02 +02:00
parent 7207affe28
commit 191349eb75

View File

@ -6,7 +6,7 @@
# | (__| |_| | _ <| |___ # | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____| # \___|\___/|_| \_\_____|
# #
# Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al. # Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
# #
# This software is licensed as described in the file COPYING, which # This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms # you should have received as part of this distribution. The terms
@ -235,6 +235,13 @@ if(!$curlver) {
printargs(); 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. # Look in each directory.
my $dir_handle; my $dir_handle;