<div dir="ltr">I think everyone has their own little scripts for this - I have one for git-svn that goes a little something like this (though it freaks out if there's an untracked directory - like a newly created but not yet git add'd one).<br><br>We should possibly get one such script checked into the repo as an authoritative tool:<br><br><pre style="color:rgb(0,0,0)">#!/bin/sh
if ! git remote -v 2> /dev/null | grep "<a href="http://llvm.org/git">http://llvm.org/git</a>" > /dev/null; then
echo "Not an llvm git repo"
exit 1
fi
while ! git remote -v 2> /dev/null | grep "<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a>" > /dev/null; do
if ! git remote -v 2> /dev/null > /dev/null; then
echo "Could not find the root of the llvm git repository"
exit 1
fi
cd `git rev-parse --show-toplevel`/../
done
cd `git rev-parse --show-toplevel` > /dev/null
function fetchAndRebase {
if [ -d $1 ]; then
pushd $1 > /dev/null
if git status > /dev/null; then
(git stash | grep "No local changes to save" > /dev/null
STASHED=$?
git fetch > /dev/null
git svn rebase -l
if [ $STASHED -ne 0 ]; then git stash pop > /dev/null; fi) &
for dir in `git status --ignored | grep /$ | sed -e "s/^#//"`; do
fetchAndRebase $dir
done
fi
popd > /dev/null
fi
}
fetchAndRebase `git rev-parse --show-toplevel`
wait<br></pre></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 28, 2016 at 11:35 PM, Csaba Raduly via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Now that autoconf support is gone and with it the "update" target<br>
(still mentioned in the "Getting started" document:<br>
<a href="http://clang.llvm.org/get_started.html" rel="noreferrer" target="_blank">http://clang.llvm.org/get_started.html</a>), what is the recommended way<br>
to update llvm, clang and any other project (clang-tools-extra,<br>
compiler-rt, etc.) from Subversion? Do I have to change manually into<br>
the appropriate directories and issue "svn up" ?<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Csaba<br>
--<br>
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++<br>
The Tao of math: The numbers you can count are not the real numbers.<br>
Life is complex, with real and imaginary parts.<br>
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds<br>
"People disagree with me. I just ignore them." -- Linus Torvalds<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</font></span></blockquote></div><br></div>