diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-04-17 16:29:19 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-04-17 23:29:52 +0000 |
commit | 54019ca207e337ba03dc01186d469bd60353675b (patch) | |
tree | 432d9725f1e9aef71267783f6e3a577aedd8ef35 /make-version.pl | |
parent | a9ba46856cff3ec121db5ce883defbec2d1dabd4 (diff) |
Move $set_version tests to update_versioned_files().
That makes it clearer what of the stuff we do for -v is also done, and
what of it is not done, for -r.
Change-Id: I23e8e8510f879e7430d2387a772691530fbd2f46
Reviewed-on: https://code.wireshark.org/review/14965
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'make-version.pl')
-rwxr-xr-x | make-version.pl | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/make-version.pl b/make-version.pl index 3d0aba4665..aefe7908f7 100755 --- a/make-version.pl +++ b/make-version.pl @@ -508,8 +508,6 @@ sub update_release_notes my $version = ""; my $filepath = "$srcdir/docbook/asciidoc.conf"; - return if (!$set_version); - open(ADOC_CONF, "< $filepath") || die "Can't read $filepath!"; while ($line = <ADOC_CONF>) { # wireshark-version:\[\]=1.9.1 @@ -538,8 +536,6 @@ sub update_debian_changelog my $version = ""; my $filepath = "$srcdir/debian/changelog"; - return if ($set_version == 0); - open(CHANGELOG, "< $filepath") || die "Can't read $filepath!"; while ($line = <CHANGELOG>) { if ($set_version && CHANGELOG->input_line_number() == 1) { @@ -567,8 +563,6 @@ sub update_automake_lib_releases my $filedir; my $filepath; - return if (!$set_version); - # The Libtool manual says # "If the library source code has changed at all since the last # update, then increment revision (‘c:r:a’ becomes ‘c:r+1:a’)." @@ -605,8 +599,6 @@ sub update_cmake_lib_releases my $filedir; my $filepath; - return if (!$set_version); - for $filedir ("epan", "wiretap") { # "wsutil" $contents = ""; $filepath = $filedir . "/CMakeLists.txt"; @@ -633,10 +625,12 @@ sub update_versioned_files &update_cmakelists_txt; &update_configure_ac; &update_config_nmake; - &update_release_notes; - &update_debian_changelog; - &update_automake_lib_releases; - &update_cmake_lib_releases; + if ($set_version) { + &update_release_notes; + &update_debian_changelog; + &update_automake_lib_releases; + &update_cmake_lib_releases; + } } sub new_version_h |