From 6633322183ff6baa27615c231c439ca8bc517cbc Mon Sep 17 00:00:00 2001 From: mbcoguno Date: Wed, 26 Sep 2012 16:31:12 +0800 Subject: mercurial: works with all CPythons. Replace shebang whatever CPython is. This can works with system, homebrew, official, pythonbrew, etc.'s CPython. Closes #15342. Signed-off-by: Adam Vandenberg --- Library/Formula/mercurial.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/mercurial.rb b/Library/Formula/mercurial.rb index 3477c74f3..b38da6eea 100644 --- a/Library/Formula/mercurial.rb +++ b/Library/Formula/mercurial.rb @@ -39,7 +39,7 @@ class Mercurial < Formula bin.install_symlink libexec+'hg' # Remove the hard-coded python invocation from hg - inreplace bin+'hg', %r[#!/.*/python(/.*)?], '#!/usr/bin/env python' + inreplace bin+'hg', %r[^#!.*$], '#!/usr/bin/env python' # Install some contribs bin.install 'contrib/hgk' -- cgit v1.2.3