Skip to content

Instantly share code, notes, and snippets.

@stefanschmidt
Last active December 7, 2015 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefanschmidt/95b52deb41c7db8ad944 to your computer and use it in GitHub Desktop.
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
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