diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-11-16 14:28:27 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-11-16 14:28:27 +0000 |
commit | c961bc2abd81e0acb3362775412b97c2ff69a13f (patch) | |
tree | a357394a1cc96c0bf1257f0cb5d9b0d4378a86f5 | |
parent | 540b55ef9f84b687160644b5723ed38efaaa4e19 (diff) | |
download | rpmtools-c961bc2abd81e0acb3362775412b97c2ff69a13f.tar rpmtools-c961bc2abd81e0acb3362775412b97c2ff69a13f.tar.gz rpmtools-c961bc2abd81e0acb3362775412b97c2ff69a13f.tar.bz2 rpmtools-c961bc2abd81e0acb3362775412b97c2ff69a13f.tar.xz rpmtools-c961bc2abd81e0acb3362775412b97c2ff69a13f.zip |
Add a version command
-rwxr-xr-x | editdistrib | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editdistrib b/editdistrib index 09badbf..f99cd09 100755 --- a/editdistrib +++ b/editdistrib @@ -8,7 +8,7 @@ use Term::ReadLine; use Text::ParseWords; use Getopt::Long; -our $VERSION = q$Id$ =~ /(\d+\.\d+)/; +(our $VERSION) = q$Id$ =~ /(\d+\.\d+)/; my @distribs; @@ -209,6 +209,7 @@ my $commands = { }, quit => sub { exit(0) }, + version => sub { print "version: $VERSION\n" }, }; |