Skip to content
Newer
Older
100644 22 lines (17 sloc) 527 Bytes
6d13b92 @rtomayko pgem-steal installs everything currently in rubygems
authored
1 #!/bin/sh
2 set -e
4b1ed8b @rtomayko s/pgem/rpg/g on entire project
authored
3 . rpg-sh-setup
6d13b92 @rtomayko pgem-steal installs everything currently in rubygems
authored
4
9abeb5c @rtomayko usage and logging cleanup across the board
authored
5 ARGV="$@"
6 USAGE '${PROGNAME} [-n]
4b1ed8b @rtomayko s/pgem/rpg/g on entire project
authored
7 Transplant packages from Rubygems to rpg.
6d13b92 @rtomayko pgem-steal installs everything currently in rubygems
authored
8
9abeb5c @rtomayko usage and logging cleanup across the board
authored
9 With the -n option, show what would be installed but do not.'
6d13b92 @rtomayko pgem-steal installs everything currently in rubygems
authored
10
11 if test "$1" = '-n'
f5139b1 @rtomayko rpg-steal passes all packages to install now
authored
12 then tampon="-n 2 echo"
6d13b92 @rtomayko pgem-steal installs everything currently in rubygems
authored
13 shift
4b1ed8b @rtomayko s/pgem/rpg/g on entire project
authored
14 else tampon="rpg-install"
6d13b92 @rtomayko pgem-steal installs everything currently in rubygems
authored
15 fi
16
c41c758 @rtomayko two phase rpg-install fetches / dep solves before installing
authored
17 gem list --local |
18 sed "s|^\(${GEMNAME_BRE}\) *(\([$GEMVERS_BRE\).*|GEM \1 \2|" |
19 grep '^GEM ' |
20 sed 's/^GEM //' |
f5139b1 @rtomayko rpg-steal passes all packages to install now
authored
21 xargs $tampon
Something went wrong with that request. Please try again.