Last active
December 7, 2015 15:28
-
-
Save stefanschmidt/95b52deb41c7db8ad944 to your computer and use it in GitHub Desktop.
Linuxbrew Formula for GNU Parallel, patched to ignore global configuration (/etc/parallel/config) thus avoiding the --tollef flag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Parallel < Formula | |
desc "GNU parallel shell command" | |
homepage "https://savannah.gnu.org/projects/parallel/" | |
url "http://ftpmirror.gnu.org/parallel/parallel-20151122.tar.bz2" | |
mirror "https://ftp.gnu.org/gnu/parallel/parallel-20151122.tar.bz2" | |
sha256 "550a63be340f931b91dbfe0e726c64522f74ec5afd7a64086603533c694b165e" | |
head "http://git.savannah.gnu.org/r/parallel.git" | |
conflicts_with "moreutils", :because => "both install a 'parallel' executable." | |
patch :DATA | |
def install | |
system "./configure", "--prefix=#{prefix}" | |
system "make", "install" | |
end | |
test do | |
assert_equal "test\ntest\n", | |
shell_output("#{bin}/parallel --will-cite echo ::: test test") | |
end | |
end | |
__END__ | |
diff --git a/src/parallel b/src/parallel | |
index 89f06df..0c1dd9a 100755 | |
--- a/src/parallel | |
+++ b/src/parallel | |
@@ -1558,7 +1558,6 @@ sub read_options { | |
if(not $opt::plain) { | |
# Add options from .parallel/config and other profiles | |
my @config_profiles = ( | |
- "/etc/parallel/config", | |
$ENV{'HOME'}."/.parallel/config", | |
$ENV{'HOME'}."/.parallelrc"); | |
my @profiles = @config_profiles; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment