aboutsummaryrefslogtreecommitdiffstats
path: root/Formula/grc.rb
diff options
context:
space:
mode:
authorMax Howell2009-05-21 01:22:43 +0100
committerMax Howell2009-05-21 01:22:43 +0100
commit044b732cd48ac0df75062841b71c718934a23102 (patch)
treeba35a2740a0ec98d04b493d4235a5080626f4f97 /Formula/grc.rb
parentd5241043f3a88d388d195621f45de9ce05fb703b (diff)
downloadbrew-044b732cd48ac0df75062841b71c718934a23102.tar.bz2
Install dmd phobos src
The sources are required for development in D
Diffstat (limited to 'Formula/grc.rb')
-rw-r--r--Formula/grc.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/Formula/grc.rb b/Formula/grc.rb
index d26d9f953..f1518fc28 100644
--- a/Formula/grc.rb
+++ b/Formula/grc.rb
@@ -4,6 +4,7 @@ require 'fileutils'
def profile_string
<<-sput
+################################################################## >> Homebrew
GRC=`which grc`
if [ "$TERM" != dumb ] && [ -n GRC ]
then
@@ -20,16 +21,14 @@ then
alias ping='colourify ping'
alias traceroute='colourify /usr/sbin/traceroute'
fi
+################################################################## << Homebrew
sput
end
######################################################################### ARGV
case ARGV[0]
when '--profile' then
- puts
- puts '################################################################## >> yumports'
puts profile_string
- puts '################################################################## << yumports'
exit 0
end
@@ -61,11 +60,11 @@ Formula.new(url, md5).brew do |prefix|
puts <<-sput
We suggest you add this to your .profile in order to make grc work! :P
-#{profile_string}
+#{profile_string.strip}
We can do this for you:
-
- #{$0} --profile >> ~/.profile
+
+ ruby #{$0} --profile >> ~/.profile
sput
end