rev=""
proj=""
revert="no"
-srcdir=""
-usage() {
+function usage() {
echo "usage: `basename $0` [OPTIONS]"
echo " -proj PROJECT The project to merge the result into"
echo " -rev NUM The revision to merge into the project"
echo " -revert Revert rather than merge the commit"
- echo " -srcdir The root of the project checkout"
}
while [ $# -gt 0 ]; do
shift
proj=$1
;;
- --srcdir | -srcdir | -s)
- shift
- srcdir=$1
- ;;
-h | -help | --help )
usage
;;
shift
done
-if [ -z "$srcdir" ]; then
- srcdir="$proj.src"
-fi
-
if [ "x$rev" = "x" -o "x$proj" = "x" ]; then
echo "error: need to specify project and revision"
echo
fi
svn log -c $rev http://llvm.org/svn/llvm-project/$proj/trunk >> $tempfile 2>&1
-cd "$srcdir"
+cd $proj.src
echo "# Updating tree"
svn up