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
CC=mpicc | |
CFLAGS= -std=c99 -fPIC -rdynamic -shared -O2 -g | |
OBJ= mpich_example.so | |
all: $(OBJ) | |
mpich_example.so: mpich_example.c | |
$(CC) $(CFLAGS) -o $@ $< | |
clean: |
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
diff --git c/Formula/gnu-indent.rb i/Formula/gnu-indent.rb | |
index b208611aeeeb..4a1e8ff93b5b 100644 | |
--- c/Formula/gnu-indent.rb | |
+++ i/Formula/gnu-indent.rb | |
@@ -1,22 +1,17 @@ | |
class GnuIndent < Formula | |
desc "C code prettifier" | |
homepage "https://www.gnu.org/software/indent/" | |
- url "https://ftp.gnu.org/gnu/indent/indent-2.2.12.tar.gz" | |
- mirror "https://ftpmirror.gnu.org/indent/indent-2.2.12.tar.gz" |
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
#!/bin/bash | |
cat > pre-commit.sh << "EOF" | |
#!/bin/sh | |
MIRROR=/tmp/${USER}/mpich-tmp-mirror | |
TMP_FILENAME=/tmp/${USER}/mpich-tmp-file | |
# Checkout a copy of the current index into MIRROR | |
git checkout-index --prefix=$MIRROR/ -af |