Skip to content

Instantly share code, notes, and snippets.

@filcab
Last active August 29, 2015 14:11
Show Gist options
  • Save filcab/d7b29795f46635511724 to your computer and use it in GitHub Desktop.
Save filcab/d7b29795f46635511724 to your computer and use it in GitHub Desktop.
clone llvm repo script
#!/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