Source

SCons / bin / scons-review.sh

Full commit
#!/bin/sh

case "$1" in
'')	exec svn diff --diff-cmd diff -x -c $* ;;
-m)	svn diff --diff-cmd diff -x -c $* | alpine scons-dev ;;
*)	echo "Error: unknown option '$1"; exit 1 ;;
esac

# OLD CODE FOR USE WITH AEGIS
#
#if test $# -ne 1; then
#    echo "Usage:  scons-review change#" >&2
#    exit 1
#fi
#if test "X$AEGIS_PROJECT" = "X"; then
#    echo "scons-review:  AEGIS_PROJECT is not set" >&2
#    exit 1
#fi
#DIR=`aegis -cd -dd $*`
#if test "X${DIR}" = "X"; then
#    echo "scons-review:  No Aegis directory for '$*'" >&2
#    exit 1
#fi
#(cd ${DIR} && find * -name '*,D' | sort | xargs cat) | pine scons-dev