diff options
author | Chris Rees <crees@FreeBSD.org> | 2013-02-03 09:51:29 +0000 |
---|---|---|
committer | Chris Rees <crees@FreeBSD.org> | 2013-02-03 09:51:29 +0000 |
commit | 3c8ccab1c6fb15378c2779ccf42f3886449e07f0 (patch) | |
tree | 4342d2d766485fa6d24d925f86ae9f4276cb65fa /Tools/scripts | |
parent | 491c771aa8b468900c6d872a0725195356915711 (diff) | |
download | ports-3c8ccab1c6fb15378c2779ccf42f3886449e07f0.tar.gz ports-3c8ccab1c6fb15378c2779ccf42f3886449e07f0.zip |
Notes
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-x | Tools/scripts/addport | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Tools/scripts/addport b/Tools/scripts/addport index 4048a975984f..8bfc7ac65d36 100755 --- a/Tools/scripts/addport +++ b/Tools/scripts/addport @@ -113,6 +113,17 @@ $tmp = $tmp2 = $offset = 0; my $edit = "/usr/bin/vi"; $edit = $ENV{EDITOR} if ($ENV{EDITOR} ne ""); +# Check svn version +my $svnversion = `svn --version --quiet 2>/dev/null`; +chomp $svnversion; +if ($svnversion eq "") { + errx(1, "Subversion binary not found in \$PATH, aborting."); +} +my @svnversion = split(/\./, $svnversion); +if ($svnversion[0] == 1 && $svnversion[1] < 7) { + errx(1, "minimum Subversion version of 1.7 not met, aborting."); +} + # stuff that always happens when we start BEGIN { $tmpdir=`mktemp -d -t ap`; |