From a30ea497e827a84ceb4df523a96865de0232be4c Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 11 Mar 2013 12:39:50 -0500 Subject: sleepwatcher: fix inreplace warning Fixes #18389. --- Library/Formula/sleepwatcher.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/sleepwatcher.rb b/Library/Formula/sleepwatcher.rb index e7cf6618d..713906f47 100644 --- a/Library/Formula/sleepwatcher.rb +++ b/Library/Formula/sleepwatcher.rb @@ -29,9 +29,13 @@ class Sleepwatcher < Formula # Write the launchd scripts inreplace Dir["config/*.plist"] do |s| + s.gsub! "/usr/local/sbin", HOMEBREW_PREFIX/'sbin' + end + + inreplace 'config/de.bernhard-baehr.sleepwatcher-20compatibility.plist' do |s| s.gsub! "/etc", (etc + 'sleepwatcher') - s.gsub! "/usr/local/sbin", (HOMEBREW_PREFIX + 'sbin') end + prefix.install Dir["config/*.plist"] end -- cgit v1.2.3