mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Remove $HOME/.weatherrc from tracked files list
This commit is contained in:
committed by
Kazushi (Jam) Marukawa
parent
a6f238370e
commit
9f0bab603f
@@ -10,7 +10,7 @@ class Weather < Package
|
|||||||
depends_on 'python27' unless File.exists? "#{CREW_PREFIX}/bin/python"
|
depends_on 'python27' unless File.exists? "#{CREW_PREFIX}/bin/python"
|
||||||
|
|
||||||
def self.build
|
def self.build
|
||||||
system "echo 'datadir = #{CREW_PREFIX}/data/weather' >> weatherrc"
|
system "echo 'setpath = $HOME/.weather:#{CREW_PREFIX}/data/weather' >> weatherrc"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.install
|
def self.install
|
||||||
@@ -19,7 +19,6 @@ class Weather < Package
|
|||||||
system "mkdir -p #{CREW_DEST_PREFIX}/etc"
|
system "mkdir -p #{CREW_DEST_PREFIX}/etc"
|
||||||
system "mkdir -p #{CREW_DEST_PREFIX}/man/man1"
|
system "mkdir -p #{CREW_DEST_PREFIX}/man/man1"
|
||||||
system "mkdir -p #{CREW_DEST_PREFIX}/man/man5"
|
system "mkdir -p #{CREW_DEST_PREFIX}/man/man5"
|
||||||
system "mkdir -p #{CREW_DEST_PREFIX}/$HOME"
|
|
||||||
system "cp weather #{CREW_DEST_PREFIX}/bin"
|
system "cp weather #{CREW_DEST_PREFIX}/bin"
|
||||||
system "cp weather.py #{CREW_DEST_PREFIX}/bin"
|
system "cp weather.py #{CREW_DEST_PREFIX}/bin"
|
||||||
system "cp airports #{CREW_DEST_PREFIX}/data/weather"
|
system "cp airports #{CREW_DEST_PREFIX}/data/weather"
|
||||||
@@ -32,15 +31,14 @@ class Weather < Package
|
|||||||
system "cp weatherrc #{CREW_DEST_PREFIX}/etc"
|
system "cp weatherrc #{CREW_DEST_PREFIX}/etc"
|
||||||
system "cp weather.1 #{CREW_DEST_PREFIX}/man/man1"
|
system "cp weather.1 #{CREW_DEST_PREFIX}/man/man1"
|
||||||
system "cp weatherrc.5 #{CREW_DEST_PREFIX}/man/man5"
|
system "cp weatherrc.5 #{CREW_DEST_PREFIX}/man/man5"
|
||||||
system "cp weatherrc $HOME/.weatherrc"
|
|
||||||
system "cp weatherrc #{CREW_DEST_PREFIX}/$HOME/.weatherrc"
|
|
||||||
#end
|
#end
|
||||||
|
|
||||||
# uncomment after PR #1110 is merged
|
# uncomment after PR #1110 is merged
|
||||||
#def self.postinstall
|
#def self.postinstall
|
||||||
puts
|
puts
|
||||||
puts "To complete the installation, execute the following:".lightblue
|
puts "To complete the installation, execute the following:".lightblue
|
||||||
puts "echo 'alias weather=\"weather --setpath=/usr/local/data/weather\"' >> ~/.bashrc && source ~/.bashrc".lightblue
|
puts "mkdir $HOME/.weather".lightblue
|
||||||
|
puts "cp #{CREW_PREFIX}/etc/weatherrc $HOME/.weather".lightblue
|
||||||
puts
|
puts
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user