forked from floere/picky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
executable file
·17 lines (13 loc) · 1.04 KB
/
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env ruby
#
# Use ./install REMOTE to use remote gem sources.
#
local_or_remote = ARGV.include?('REMOTE') ? '' : '--local'
require File.expand_path '../version', __FILE__
gem_command = 'gem'
puts "Installing all gems."
system "cd server; #{gem_command} build picky.gemspec; #{gem_command} install picky-*.gem #{local_or_remote} --no-rdoc --no-ri; rm picky-*.gem"
system "cd client; #{gem_command} build picky-client.gemspec; #{gem_command} install picky-client-*.gem #{local_or_remote} --no-rdoc --no-ri; rm picky-client-*.gem"
system "cd statistics; #{gem_command} build picky-statistics.gemspec; #{gem_command} install picky-statistics-*.gem #{local_or_remote} --no-rdoc --no-ri; rm picky-statistics-*.gem"
system "cd generators; #{gem_command} build picky-generators.gemspec; #{gem_command} install picky-generators-*.gem #{local_or_remote} --no-rdoc --no-ri; rm picky-generators-*.gem"
system "cd live; #{gem_command} build picky-live.gemspec; #{gem_command} install picky-live-*.gem #{local_or_remote} --no-rdoc --no-ri; rm picky-live-*.gem"