diff options
author | Richard Hartmann <richih@debian.org> | 2013-09-02 21:04:41 +0200 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2013-09-11 18:21:41 +0100 |
commit | 768ff5909deb2493f1435ed5ab93019cdd75682a (patch) | |
tree | 1c206582c4cd37545dbc38f4027fe862900a4290 | |
parent | 648901ab69f6cf25adff0ecabfc3a004a6f69382 (diff) |
dgit*: Implement `dgit version`
-rwxr-xr-x | dgit | 6 | ||||
-rw-r--r-- | dgit.1 | 3 |
2 files changed, 9 insertions, 0 deletions
@@ -28,6 +28,8 @@ use File::Basename; use Dpkg::Version; use POSIX; +our $dgit_version = 0.14; + our $isuite = 'unstable'; our $idistro; our $package; @@ -1199,6 +1201,10 @@ sub cmd_quilt_fixup { build_maybe_quilt_fixup(); } +sub cmd_version { + print "dgit version $dgit_version\n"; +} + sub parseopts () { my $om; while (@ARGV) { @@ -151,6 +151,9 @@ by making a new debian/ patch containing your unquilty changes) and make a commit of the changes it has made. This is normally done automatically by dgit build and dgit push. +.TP +.B dgit version +Prints version information and exits. .SH OPTIONS .TP .BR --dry-run | -n |