svn path=/trunk/; revision=38340
This commit is contained in:
Chris Maynard 2011-08-04 20:20:51 +00:00
parent b4ce593083
commit 78ef4cdd88
1 changed files with 3 additions and 2 deletions

View File

@ -255,8 +255,7 @@ sub print_svn_version
$revision . "\"\n" . $revision . "\"\n" .
"#define SVNPATH \"" . $repo_path . "\"\n"; "#define SVNPATH \"" . $repo_path . "\"\n";
} else { } else {
$svn_version = "#define SVNVERSION \"SVN Rev Unknown\"\n" . $svn_version = "\n";
"#define SVNPATH \"unknown\"\n";
} }
if (open(OLDVER, "<$version_file")) { if (open(OLDVER, "<$version_file")) {
my $old_svn_version = <OLDVER> . <OLDVER>; my $old_svn_version = <OLDVER> . <OLDVER>;
@ -333,6 +332,8 @@ if ($svn_info_cmd) {
} }
} else { } else {
print "This is not a SVN build.\n"; print "This is not a SVN build.\n";
$last_change = 0;
$revision = 0;
} }
&print_svn_version; &print_svn_version;