aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/xspin.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-02-18 10:05:01 -0800
committerAdam Vandenberg2010-03-07 11:27:23 -0800
commitec4906b85a5fdddd085f34e4aea70ed604dad9a7 (patch)
tree30cac41f749a6c2c698526fa5f5c70b0a2065eff /Library/Formula/xspin.rb
parent1104bda9287aa4e2440dfff794b982b391eebe23 (diff)
downloadhomebrew-ec4906b85a5fdddd085f34e4aea70ed604dad9a7.tar.bz2
Use Pathname support for renames.
Diffstat (limited to 'Library/Formula/xspin.rb')
-rw-r--r--Library/Formula/xspin.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/Library/Formula/xspin.rb b/Library/Formula/xspin.rb
index b9cd44767..437dda17e 100644
--- a/Library/Formula/xspin.rb
+++ b/Library/Formula/xspin.rb
@@ -13,14 +13,8 @@ class Xspin <Formula
end
def install
- version='523'
-
- fname = "xspin#{version}.tcl"
-
- inreplace fname, "CELLAR", prefix
-
- FileUtils.mv fname, "xspin"
- bin.install "xspin"
+ inreplace "xspin523.tcl", "CELLAR", prefix
+ bin.install "xspin523.tcl" => "xspin"
end
end