Created
February 1, 2012 19:40
-
-
Save soc/1718837 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| cp -R scala-llvm-bck scala-llvm-backend | |
| LS='src/compiler/scala/tools/nsc/backend/llvm' | |
| git filter-branch --subdirectory-filter $LS -- --all | |
| git for-each-ref --format="%(refname)" refs/original/ | xargs -n 1 git update-ref -d | |
| git reflog expire --expire=now --all | |
| git tag -l | xargs git tag -d | |
| git gc --prune=now | |
| git add . | |
| mkdir -p $LS | |
| ############### | |
| mv ??? $LS | |
| git rm ??? | |
| git commit -m "LLVM backend. Cleaned up old history and moved to new direction." | |
| ############### | |
| git clone git@github.com:soc/scala.git scala-bck | |
| cd scala | |
| git remote add trunk https://github.com/scala/scala.git | |
| git checkout -b llvm | |
| git remote add llvm-model ../scala-llvm-model | |
| git fetch llvm-model llvm | |
| git remote add llvm-rt ../scala-llvm-rt | |
| git fetch llvm-rt llvm | |
| git remote add llvm-ffi ../scala-llvm-ffi | |
| git fetch llvm-ffi llvm | |
| git remote add llvm-examples ../scala-llvm-examples | |
| git fetch llvm-examples llvm | |
| git remote add llvm-backend ../scala-llvm-backend | |
| git fetch llvm-backend llvm | |
| cp ../scala-llvm-bck/configure.ac src/llvm/ | |
| cp ../scala-llvm-bck/install-sh src/llvm/ | |
| cp ../scala-llvm-bck/README.llvm src/llvm/ | |
| cp ../scala-llvm-bck/$LS/../LLVMPlatform.scala $LS/../ | |
| git checkout master | |
| git pull trunk master | |
| git checkout llvm | |
| git rebase master | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment