diff options
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 |