aboutsummaryrefslogtreecommitdiffstats
path: root/editdistrib
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-16 14:28:27 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-16 14:28:27 +0000
commitc961bc2abd81e0acb3362775412b97c2ff69a13f (patch)
treea357394a1cc96c0bf1257f0cb5d9b0d4378a86f5 /editdistrib
parent540b55ef9f84b687160644b5723ed38efaaa4e19 (diff)
downloadrpmtools-c961bc2abd81e0acb3362775412b97c2ff69a13f.tar
rpmtools-c961bc2abd81e0acb3362775412b97c2ff69a13f.tar.gz
rpmtools-c961bc2abd81e0acb3362775412b97c2ff69a13f.tar.bz2
rpmtools-c961bc2abd81e0acb3362775412b97c2ff69a13f.tar.xz
rpmtools-c961bc2abd81e0acb3362775412b97c2ff69a13f.zip
Add a version command
Diffstat (limited to 'editdistrib')
-rwxr-xr-xeditdistrib3
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" },
};