From bd95a93220af1f67a4658234ea983c8e30599cde Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Fri, 17 Mar 2017 15:34:02 -0700 Subject: [PATCH] Clean up and add installation for liberred. --- stderred/README.md | 3 +++ stderred/install.sh | 7 +++++++ {local/lib64 => stderred}/stderred.so | Bin 3 files changed, 10 insertions(+) create mode 100644 stderred/README.md create mode 100755 stderred/install.sh rename {local/lib64 => stderred}/stderred.so (100%) diff --git a/stderred/README.md b/stderred/README.md new file mode 100644 index 0000000..cc94ddf --- /dev/null +++ b/stderred/README.md @@ -0,0 +1,3 @@ +Makes all your stderr messages red! + +To install, just run `install.sh`. diff --git a/stderred/install.sh b/stderred/install.sh new file mode 100755 index 0000000..13f66fa --- /dev/null +++ b/stderred/install.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +if ! grep 'stderred.so' ~/.bash_profile; then + echo 'export LD_PRELOAD=$LD_PRELOAD:"~/.local/lib64/stderred.so"' >> ~/.bash_profile +fi +mkdir -p ~/.local/lib64 +cp stderred.so ~/.local/lib64/ diff --git a/local/lib64/stderred.so b/stderred/stderred.so similarity index 100% rename from local/lib64/stderred.so rename to stderred/stderred.so