[llvm-commits] script for updating LLVM + Clang from anywhere in the tree

Gabor Greif ggreif at gmail.com
Mon Apr 12 02:30:39 PDT 2010


On Apr 9, 10:01 pm, Zhanyong Wan (λx.x x) <w... at google.com> wrote:
> Hi,
>
> I have a script for updating both LLVM and Clang source trees to a
> given revision, from anywhere in either of the trees.
>
> USAGE:
>     upllvm.py         # Updates to HEAD.
>     upllvm.py 12345   # Updates to r12345.
>     upllvm.py r12345  # The same as the previous command.

As I have already pointed out in IRC, this is already part of the
regular (non-cmake) makefiles.

make update SVN-UPDATE-OPTIONS=-r12345

simply typing "make update" will bring the tree to HEAD.
This should work for everywhere in the tree and also in the
build directory. It will also find the subdirectories like
"clang" and "llvm-test" and update them.

Unfortunately cmake-generated makefiles lack this functionality
and although I am not a cmake expert I guess adding the two-or-so
lines to the makefiles should be easy enough ("passthrough" ?
"include" ?)

Cheers,

    Gabor

>
> Could someone review the patch?  Thanks,
> --
> Zhanyong
>
>  upllvm.patch
> 2KViewDownload
>
> _______________________________________________
> llvm-commits mailing list
> llvm-comm... at cs.uiuc.eduhttp://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list