Create/update svnversion.h unless we're only running with --get-*.

svn path=/trunk/; revision=39892
This commit is contained in:
Gerald Combs 2011-11-17 00:48:21 +00:00
parent 3f12c48ace
commit 5624924e4a
1 changed files with 3 additions and 3 deletions

View File

@ -403,7 +403,7 @@ sub print_svn_revision
close OLDREV;
}
if (! $set_release) { return; }
if (! $set_version && ! $set_release) { return; }
if ($needs_update) {
# print "Updating $version_file so it contains:\n$svn_revision";
@ -463,6 +463,8 @@ sub get_config {
&read_svn_info();
&print_svn_revision;
if ($set_version || $set_release) {
if ($set_version) {
print "Generating version information\n";
@ -484,8 +486,6 @@ if ($set_version || $set_release) {
&update_versioned_files;
}
&print_svn_revision;
__END__
=head1 NAM