[DRE-commits] [gem2deb] 04/04: bin/dh-make-ruby: use '.' (current directory) as default target. Closes: #777747
Lucas Nussbaum
lucas at moszumanska.debian.org
Mon May 11 19:45:12 UTC 2015
This is an automated email from the git hooks/post-receive script.
lucas pushed a commit to branch master
in repository gem2deb.
commit 0c754bb14ecb772838cefa9f97a5b0e96bf702d8
Author: Lucas Nussbaum <lucas at debian.org>
Date: Mon May 11 21:39:12 2015 +0200
bin/dh-make-ruby: use '.' (current directory) as default target. Closes: #777747
---
bin/dh-make-ruby | 15 +++++++++------
debian/changelog | 2 ++
2 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/bin/dh-make-ruby b/bin/dh-make-ruby
index 2ccf8e5..a050b77 100755
--- a/bin/dh-make-ruby
+++ b/bin/dh-make-ruby
@@ -22,7 +22,7 @@ require 'optparse'
options = {}
optparse = OptionParser.new do |opts|
- opts.banner = "Usage: dh-make-ruby [OPTIONS] TARBALL|DIRECTORY"
+ opts.banner = "Usage: dh-make-ruby [OPTIONS] [TARBALL|DIRECTORY]"
opts.separator 'Options:'
opts.on('-h', '--help', 'show help') do
@@ -50,13 +50,15 @@ optparse = OptionParser.new do |opts|
end
optparse.parse!
-if ARGV.length != 1
+if ARGV.length == 0
+ input = '.'
+elsif ARGV.length == 1
+ input = ARGV[0]
+else
puts optparse
exit(1)
end
-input = ARGV[0]
-
dmr = Gem2Deb::DhMakeRuby::new(input, options)
dmr.build
@@ -67,13 +69,14 @@ dh-make-ruby - build Debian source package from Ruby library
=head1 USAGE
-B<dh-make-ruby> [I<OPTIONS>] I<TARBALL>|I<DIRECTORY>
+B<dh-make-ruby> [I<OPTIONS>] [I<TARBALL>|I<DIRECTORY>]
=head1 DESCRIPTION
B<dh-make-ruby> will create a basic Debian source package from a tarball named
I<TARBALL> generated with B<gem2tgz>, or from a I<DIRECTORY> containing Ruby
-code and metadata in a .gemspec file.
+code and metadata in a .gemspec file. If no argument is specified, B<dh-make-ruby>
+will build a Debian source package from the current directory.
=head1 OPTIONS
diff --git a/debian/changelog b/debian/changelog
index ae9ba31..4cd68d8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ gem2deb (0.16) UNRELEASED; urgency=medium
2012, that makes gem2tgz pick the most recent (in terms of gem version)
gem file, instead of just the first one, after running gem fetch.
Closes: #733171
+ * bin/dh-make-ruby: use '.' (current directory) as default target.
+ Closes: #777747
-- Lucas Nussbaum <lucas at debian.org> Mon, 11 May 2015 21:10:48 +0200
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gem2deb.git
More information about the Pkg-ruby-extras-commits
mailing list