summaryrefslogtreecommitdiff
path: root/bin/scons-review.sh
blob: f126333e72419ae57891437f3521e89b85d4cde0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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