diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-01-25 14:31:39 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-01-25 22:32:11 +0000 |
commit | 88e22bdeb591e99dcbc98f0cfe749b9b614e7e40 (patch) | |
tree | 902e33314ab119569b2eb6832e84998e7d4de3ed /make-version.pl | |
parent | be798e18f4bab165944f6d5ab0ff661f09ea7870 (diff) |
Remove some references to SVN.
Rename the --get-svn and --set-svn options to --get-vcs and --set-vcs;
continue to support --get-svn and --set-svn as aliases, for backwards
compatibility. Change variable names as well.
Change-Id: If25d81dae747f9825f7e3e5e937749f078f63d27
Reviewed-on: https://code.wireshark.org/review/6783
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'make-version.pl')
-rwxr-xr-x | make-version.pl | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/make-version.pl b/make-version.pl index e4a7614dc7..d323142db3 100755 --- a/make-version.pl +++ b/make-version.pl @@ -73,8 +73,8 @@ my $num_commits = 0; my $commit_id = ''; my $repo_branch = "unknown"; my $git_description = undef; -my $get_svn = 0; -my $set_svn = 0; +my $get_vcs = 0; +my $set_vcs = 0; my $set_version = 0; my $set_release = 0; my %version_pref = ( @@ -367,7 +367,7 @@ sub read_repo_info { $repo_branch = substr($repo_url, length($repo_root)); } - if ($get_svn) { + if ($get_vcs) { print <<"Fin"; Commit distance : $num_commits Commit ID : $commit_id @@ -615,7 +615,7 @@ sub print_VCS_REVISION close OLDREV; } - if (! $set_svn) { return; } + if (! $set_vcs) { return; } if ($needs_update) { # print "Updating $version_file so it contains:\n$VCS_REVISION"; @@ -637,16 +637,16 @@ sub get_config { # XXX - Do we need an option to undo --set-release? GetOptions( "help|h", \$show_help, - "get-svn|g", \$get_svn, - "set-svn|s", \$set_svn, + "get-vcs|get-svn|g", \$get_vcs, + "set-vcs|set-svn|s", \$set_vcs, "set-version|v", \$set_version, "set-release|r|package-version|p", \$set_release ) || pod2usage(2); if ($show_help) { pod2usage(1); } - if ( !( $show_help || $get_svn || $set_svn || $set_version || $set_release ) ) { - $set_svn = 1; + if ( !( $show_help || $get_vcs || $set_vcs || $set_version || $set_release ) ) { + $set_vcs = 1; } if ($#ARGV >= 0) { @@ -713,8 +713,8 @@ make-version.pl [options] [source directory] Options: --help, -h This help message - --get-svn, -g Print the SVN revision and source. - --set-svn, -s Set the information in version.h + --get-vcs, -g Print the VCS revision and source. + --set-vcs, -s Set the information in version.h --set-version, -v Set the major, minor, and micro versions in configure.ac, config.nmake, debian/changelog, and docbook/asciidoc.conf. |