Last active
August 29, 2015 14:11
-
-
Save filcab/d7b29795f46635511724 to your computer and use it in GitHub Desktop.
clone llvm repo script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
repo=$1 | |
svn_repo=$repo | |
if [ "$repo" = "clang" ]; then | |
svn_repo=cfe | |
fi | |
echo "[*] Cloning $repo.git (based on $svn_repo/trunk)" | |
( | |
git clone http://llvm.org/git/$repo.git && | |
cd $repo && | |
git config branch.master.rebase true && | |
git svn init https://llvm.org/svn/llvm-project/$repo/trunk --username=filcab && | |
git config svn-remote.svn.fetch :refs/remotes/origin/master && | |
git svn rebase -l | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment