How to set up the Harmony working environment.
(get the
git-new-workdir script from git distribution
in
git-1.5.*/contrib/workdir/git-new-workdir and install
somewhere on your
PATH).
git clone git://repo.or.cz/harmony.git trunk
cd trunk
git checkout -b trunk origin/trunk
git branch common_resources origin/common_resources
git new-workdir . common_resources common_resources
git branch drlvm origin/drlvm
git new-workdir . working_vm drlvm
git branch classlib origin/classlib
git new-workdir . working_classlib classlib
git branch jdktools origin/jdktools
git new-workdir . working_jdktools jdktools
git branch concurrent origin/concurrent
git new-workdir . working_classlib/modules/concurrent/standard concurrent
If you do not want to use
git-new-workdir script,
use regular
git-clone command:
git clone git://repo.or.cz/harmony.git trunk
cd trunk
git clone . working_classlib
cd working_classlib
git fetch .. refs/remotes/origin/classlib:refs/remotes/origin/classlib
git checkout -b classlib origin/classlib
cp ../.git/config .git/ # to fix 'origin' repo (by default it would be '..')
When it is time to update the workspace, you have to do it individually
for each module, like
cd working_classlib
git pull
Also please consider editing your
.git/info/exclude file to avoid
git status complaining about untracked directories
cat >> .git/info/exclude <<eof
/working_*
/common_resources
eof
etc.