llvm.org GIT mirror llvm / 02a2eee
Revert unintentional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_38@271395 91177308-0d34-0410-b5e6-96231b3b80d8 Joerg Sonnenberger 3 years ago
1 changed file(s) with 2 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
1616 rev=""
1717 proj=""
1818 revert="no"
19 srcdir=""
2019
21 usage() {
20 function usage() {
2221 echo "usage: `basename $0` [OPTIONS]"
2322 echo " -proj PROJECT The project to merge the result into"
2423 echo " -rev NUM The revision to merge into the project"
2524 echo " -revert Revert rather than merge the commit"
26 echo " -srcdir The root of the project checkout"
2725 }
2826
2927 while [ $# -gt 0 ]; do
3533 -proj | --proj | -project | --project | -p )
3634 shift
3735 proj=$1
38 ;;
39 --srcdir | -srcdir | -s)
40 shift
41 srcdir=$1
4236 ;;
4337 -h | -help | --help )
4438 usage
5549 esac
5650 shift
5751 done
58
59 if [ -z "$srcdir" ]; then
60 srcdir="$proj.src"
61 fi
6252
6353 if [ "x$rev" = "x" -o "x$proj" = "x" ]; then
6454 echo "error: need to specify project and revision"
8171 fi
8272 svn log -c $rev http://llvm.org/svn/llvm-project/$proj/trunk >> $tempfile 2>&1
8373
84 cd "$srcdir"
74 cd $proj.src
8575 echo "# Updating tree"
8676 svn up
8777