[go: up one dir, main page]

Menu

[r169]: / bin / colorwarper  Maximize  Restore  History

Download this file

23 lines (19 with data), 483 Bytes

#!/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]}