diff options
author | Gerald Combs <gerald@wireshark.org> | 2011-11-18 01:35:58 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2011-11-18 01:35:58 +0000 |
commit | d7bb2160f69c19be2fd613d374a91b6c2bab53c0 (patch) | |
tree | 2adee2abb3ebf214b0fa9140b6ad8c3c98e58b8b /make-version.pl | |
parent | 873e0bdd711f4366047ac52d2eeb270a368ca298 (diff) |
Use the source directory argument.
svn path=/trunk/; revision=39926
Diffstat (limited to 'make-version.pl')
-rwxr-xr-x | make-version.pl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/make-version.pl b/make-version.pl index 1d9d49e5d2..08798a987d 100755 --- a/make-version.pl +++ b/make-version.pl @@ -169,7 +169,7 @@ sub read_svn_info { if ($revision == 0) { # Fall back to config.nmake $info_source = "Prodding config.nmake"; - my $filepath = "config.nmake"; + my $filepath = "$srcdir/config.nmake"; open(CFGNMAKE, "< $filepath") || die "Can't read $filepath!"; while ($line = <CFGNMAKE>) { if ($line =~ /^SVN_REVISION=(\d+)/) { @@ -256,7 +256,7 @@ sub update_configure_in my $line; my $contents = ""; my $version = ""; - my $filepath = "configure.in"; + my $filepath = "$srcdir/configure.in"; return if (!$set_version && $package_string eq ""); @@ -287,7 +287,7 @@ sub update_config_nmake my $line; my $contents = ""; my $version = ""; - my $filepath = "config.nmake"; + my $filepath = "$srcdir/config.nmake"; open(CFGNMAKE, "< $filepath") || die "Can't read $filepath!"; while ($line = <CFGNMAKE>) { @@ -318,7 +318,7 @@ sub update_release_notes my $line; my $contents = ""; my $version = ""; - my $filepath = "docbook/release-notes.xml"; + my $filepath = "$srcdir/docbook/release-notes.xml"; return if (!$set_version); @@ -348,7 +348,7 @@ sub update_debian_changelog my $line; my $contents = ""; my $version = ""; - my $filepath = "debian/changelog"; + my $filepath = "$srcdir/debian/changelog"; return if ($set_version == 0); |