From d574a2450be73dfdf431dd7c26713a5b60437048 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Tue, 4 Aug 2009 00:35:30 +0000 Subject: Don't exit with an error if we can't find the svn executable. svn path=/trunk/; revision=29288 --- make-version.pl | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'make-version.pl') diff --git a/make-version.pl b/make-version.pl index c17626fc49..827115e4b7 100755 --- a/make-version.pl +++ b/make-version.pl @@ -104,21 +104,21 @@ sub read_svn_info { use warnings "all"; no warnings "all"; $line = qx{svn info $srcdir}; - if (!defined($line)) { - exit 1; - } - if ($line =~ /Last Changed Date: (\d{4})-(\d\d)-(\d\d) (\d\d):(\d\d):(\d\d)/) { - $last_change = timegm($6, $5, $4, $3, $2 - 1, $1); - } - if ($line =~ /Last Changed Rev: (\d+)/) { - $revision = $1; - } - if ($line =~ /URL: (\S+)/) { - $repo_url = $1; - } - if ($line =~ /Repository Root: (\S+)/) { - $repo_root = $1; + if (defined($line)) { + if ($line =~ /Last Changed Date: (\d{4})-(\d\d)-(\d\d) (\d\d):(\d\d):(\d\d)/) { + $last_change = timegm($6, $5, $4, $3, $2 - 1, $1); + } + if ($line =~ /Last Changed Rev: (\d+)/) { + $revision = $1; + } + if ($line =~ /URL: (\S+)/) { + $repo_url = $1; + } + if ($line =~ /Repository Root: (\S+)/) { + $repo_root = $1; + } } + 1; }; if ($last_change && $revision && $repo_url && $repo_root) { -- cgit v1.2.3