Make it easier to process merges in a normal buildable directory tree by

allowing the user to specify the base directory of the checkout.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271192 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Joerg Sonnenberger 2016-05-29 22:09:54 +00:00
parent 8b95cd30c2
commit d703145852

View File

@ -35,6 +35,10 @@ while [ $# -gt 0 ]; do
shift
proj=$1
;;
--srcdir | -srcdir | -s)
shift
srcdir=$1
;;
-h | -help | --help )
usage
;;
@ -51,6 +55,10 @@ while [ $# -gt 0 ]; do
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
@ -72,7 +80,7 @@ else
fi
svn log -c $rev http://llvm.org/svn/llvm-project/$proj/trunk >> $tempfile 2>&1
cd $proj.src
cd "$srcdir"
echo "# Updating tree"
svn up