diff options
-rw-r--r-- | ruby.md | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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: |