[DRE-commits] r5929 - in trunk: gem2tgz gem2tgz/bin ruby-pkg-tools ruby-pkg-tools/bin ruby-pkg-tools/debian
Antonio Terceiro
terceiro-guest at alioth.debian.org
Sat Oct 16 23:30:58 UTC 2010
Author: terceiro-guest
Date: 2010-10-16 23:30:57 +0000 (Sat, 16 Oct 2010)
New Revision: 5929
Added:
trunk/ruby-pkg-tools/Rakefile
trunk/ruby-pkg-tools/bin/gem2tgz
trunk/ruby-pkg-tools/lib/
trunk/ruby-pkg-tools/test/
Removed:
trunk/gem2tgz/Rakefile
trunk/gem2tgz/bin/gem2tgz
trunk/gem2tgz/lib/
trunk/gem2tgz/test/
Modified:
trunk/ruby-pkg-tools/debian/ruby-pkg-tools.install
Log:
Moving gem2tgz stuff into ruby-pkg-tools
Deleted: trunk/gem2tgz/Rakefile
===================================================================
--- trunk/gem2tgz/Rakefile 2010-10-15 20:21:38 UTC (rev 5928)
+++ trunk/gem2tgz/Rakefile 2010-10-16 23:30:57 UTC (rev 5929)
@@ -1,10 +0,0 @@
-require 'rake/testtask'
-
-task :default => :test
-
-Rake::TestTask.new do |t|
- t.libs << "lib"
- t.libs << "test"
- t.test_files = FileList['test/*_test.rb']
- t.verbose = true
-end
Deleted: trunk/gem2tgz/bin/gem2tgz
===================================================================
--- trunk/gem2tgz/bin/gem2tgz 2010-10-15 20:21:38 UTC (rev 5928)
+++ trunk/gem2tgz/bin/gem2tgz 2010-10-16 23:30:57 UTC (rev 5929)
@@ -1,67 +0,0 @@
-#! /usr/bin/ruby1.8
-#
-# Copyright © 2010, Antonio Terceiro <terceiro at softwarelivre.org>
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-# = Synopsis
-#
-# gem2tgz - converts a Ruby gem file into a source tarball proper for being used
-# as upstream source tarball on Debian packages.
-#
-# = Usage
-#
-# gem2tgz [OPTIONS] GEM [TARBALL]
-#
-# -h, --help:
-# show help
-#
-# GEM: a valid Rubygem's .gem file
-#
-# TARBALL: destination tarball to be created. If omitted, gem2tgz will try to
-# guess based on GEM argument.
-
-require 'gem2tgz'
-require 'getoptlong'
-require 'rdoc/usage'
-
-opts = GetoptLong.new(
- [ '--version', '-v', GetoptLong::NO_ARGUMENT ],
- [ '--help', '-h', GetoptLong::NO_ARGUMENT ]
-)
-
-opts.each do |opt,arg|
- case opt
- when '--help'
- RDoc::usage(0, 'usage')
- when '--version'
- puts "gem2tgz version #{Gem2Tgz::VERSION}"
- exit(0)
- end
-end
-
-if ARGV.length != 1 && ARGV.length != 2
- puts "usage: gem2tgz [OPTIONS] GEM [TARBALL]"
- exit(1)
-end
-
-gem = ARGV[0]
-if gem !~ /\.gem$/
- puts "#{gem} does not look like a valid .gem file."
- exit(1)
-end
-
-tarball = ARGV[1] || gem.gsub(/\.gem$/, '.tar.gz')
-
-Gem2Tgz.convert!(gem, tarball)
Copied: trunk/ruby-pkg-tools/Rakefile (from rev 5928, trunk/gem2tgz/Rakefile)
===================================================================
--- trunk/ruby-pkg-tools/Rakefile (rev 0)
+++ trunk/ruby-pkg-tools/Rakefile 2010-10-16 23:30:57 UTC (rev 5929)
@@ -0,0 +1,10 @@
+require 'rake/testtask'
+
+task :default => :test
+
+Rake::TestTask.new do |t|
+ t.libs << "lib"
+ t.libs << "test"
+ t.test_files = FileList['test/*_test.rb']
+ t.verbose = true
+end
Copied: trunk/ruby-pkg-tools/bin/gem2tgz (from rev 5928, trunk/gem2tgz/bin/gem2tgz)
===================================================================
--- trunk/ruby-pkg-tools/bin/gem2tgz (rev 0)
+++ trunk/ruby-pkg-tools/bin/gem2tgz 2010-10-16 23:30:57 UTC (rev 5929)
@@ -0,0 +1,67 @@
+#! /usr/bin/ruby1.8
+#
+# Copyright © 2010, Antonio Terceiro <terceiro at softwarelivre.org>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# = Synopsis
+#
+# gem2tgz - converts a Ruby gem file into a source tarball proper for being used
+# as upstream source tarball on Debian packages.
+#
+# = Usage
+#
+# gem2tgz [OPTIONS] GEM [TARBALL]
+#
+# -h, --help:
+# show help
+#
+# GEM: a valid Rubygem's .gem file
+#
+# TARBALL: destination tarball to be created. If omitted, gem2tgz will try to
+# guess based on GEM argument.
+
+require 'gem2tgz'
+require 'getoptlong'
+require 'rdoc/usage'
+
+opts = GetoptLong.new(
+ [ '--version', '-v', GetoptLong::NO_ARGUMENT ],
+ [ '--help', '-h', GetoptLong::NO_ARGUMENT ]
+)
+
+opts.each do |opt,arg|
+ case opt
+ when '--help'
+ RDoc::usage(0, 'usage')
+ when '--version'
+ puts "gem2tgz version #{Gem2Tgz::VERSION}"
+ exit(0)
+ end
+end
+
+if ARGV.length != 1 && ARGV.length != 2
+ puts "usage: gem2tgz [OPTIONS] GEM [TARBALL]"
+ exit(1)
+end
+
+gem = ARGV[0]
+if gem !~ /\.gem$/
+ puts "#{gem} does not look like a valid .gem file."
+ exit(1)
+end
+
+tarball = ARGV[1] || gem.gsub(/\.gem$/, '.tar.gz')
+
+Gem2Tgz.convert!(gem, tarball)
Modified: trunk/ruby-pkg-tools/debian/ruby-pkg-tools.install
===================================================================
--- trunk/ruby-pkg-tools/debian/ruby-pkg-tools.install 2010-10-15 20:21:38 UTC (rev 5928)
+++ trunk/ruby-pkg-tools/debian/ruby-pkg-tools.install 2010-10-16 23:30:57 UTC (rev 5929)
@@ -2,3 +2,4 @@
pkg-ruby-extras.* usr/share/ruby-pkg-tools/
bin/* usr/bin
sequences/* usr/share/perl5/Debian/Debhelper/Sequence/
+lib/* usr/lib/ruby/1.8/
More information about the Pkg-ruby-extras-commits
mailing list