diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-06-03 00:45:02 +0200 |
---|---|---|
committer | ng0 <ng0@infotropique.org> | 2017-08-22 15:27:00 +0000 |
commit | 43355fa802693db4d6911c1f95184f0454f0dfef (patch) | |
tree | 9d59debb2bf99727b37e50c4151f0ef05f6ca3c5 /scripts | |
parent | 000672ebaf312e356930a414a1cc39ffc1d08a3a (diff) | |
download | gnurl-43355fa802693db4d6911c1f95184f0454f0dfef.tar.gz gnurl-43355fa802693db4d6911c1f95184f0454f0dfef.tar.bz2 gnurl-43355fa802693db4d6911c1f95184f0454f0dfef.zip |
updatemanpages.pl: error out on too old git version
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/updatemanpages.pl | 9 |
1 files changed, 8 insertions, 1 deletions
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, <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 # 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; |