Sha256: db005a2a7a560f1113a2378e4e0825a44f30b0466d08f93e25e08c6dc5a717c6
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
#!/usr/bin/env ruby # encoding: utf-8 require 'rubygems' require 'fileutils' 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" FileUtils.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" FileUtils.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grumblr-2.4.2 | setup.rb |