Sha256: 961d32b5258d3b4b8deb5750a5ecb4782ed6f3489dba477d2c65a398bc57bec2
Contents?: true
Size: 1.16 KB
Versions: 6
Compression:
Stored size: 1.16 KB
Contents
#!/usr/bin/env ruby require 'rubygems' require 'ftools' unless Process.uid == 0 puts "Must run as root" exit end version = File.open('VERSION') { |f| f.read } Gem.path.each do |path| puts "Checking out #{path}" path = File.join(path, 'gems', "grumblr-#{version}") unless File.directory?(path) puts " Gem not found\n\n" next end puts " Gem found!" puts " Copying data:" target = '/usr/share/pixmaps/grumblr.svg' if File.exists?(target) puts " - #{target} exists, skipping." else puts " + #{target} does not exist. copying" File.copy File.join(path, 'data', 'pixmaps', 'grumblr.svg'), target, :verbose => true end target = '/usr/share/applications/grumblr.desktop' if File.exists?(target) puts " - #{target} exists, skipping." else puts " + #{target} does not exist, copying" File.copy File.join(path, 'data', 'grumblr.desktop'), target, :verbose => true end target = '/usr/local/bin/grumblr' if File.exists?(target) puts " - #{target} exists, linking." else puts " + #{target} does not exist, copying" File.symlink File.join(path, 'bin', 'grumblr'), target end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
grumblr-2.3.8 | setup.rb |
grumblr-2.3.7 | setup.rb |
grumblr-2.3.6 | setup.rb |
grumblr-2.3.5 | setup.rb |
grumblr-2.3.4 | setup.rb |
grumblr-2.3.3 | setup.rb |