geek rescue kit Code
Brought to you by:
ctaf
#!/usr/bin/env bash
#CTAFCONF, GPL, etc...
app="$1"
if ! which $app 2>/dev/null >/dev/null ; then
echo "colorwarper: error: can't find: $app"
exit 1;
fi
if ! which perl 2>/dev/null >/dev/null ; then
echo "colorwarper: warning: can't find perl!!"
echo "colorwarper: continuing without coloring output"
"$@"
else
if [ x"$app" = xgmake ]; then
"$@" 2>&1 | ~/.ctafconf/bin/colormake.pl
else
"$@" 2>&1 | ~/.ctafconf/bin/color$app.pl
fi
fi
exit ${PIPESTATUS[0]}