summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-10-17 18:46:58 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-10-17 18:46:58 -0300
commitdedf705e16954887f62e511a47f622df3e6a1add (patch)
tree0680ade1000c13c225457409abab683c07aea715
parentac5e31e4a3bee6d503f9ab5f9470228a7c0c61a2 (diff)
downloaddebian-dedf705e16954887f62e511a47f622df3e6a1add.tar.gz
debian-dedf705e16954887f62e511a47f622df3e6a1add.tar.bz2
More on ruby packaging
-rw-r--r--ruby.md11
1 files changed, 10 insertions, 1 deletions
diff --git a/ruby.md b/ruby.md
index 3ad574d..0433f89 100644
--- a/ruby.md
+++ b/ruby.md
@@ -8,11 +8,20 @@ Example: packaging leap_cli and dependencies
First, in a *fresh* vagrant box:
+ sudo apt-get install rubygems gem2deb
sudo gem install leap_cli
Then we get the dependencies and build all packages:
- gem list | cut -d '(' -f 1 | while read gem; do gem2deb $gem; done
+ dependencies="`gem list | cut -d '(' -f 1`"
+
+ for gem in $dependencies; do
+ gem2deb $gem
+ done
+
+Cleanup:
+
+ sudo gem uninstall $dependencies
Additional steps: