Commit 34a1c3a0 authored by Robert Bradshaw's avatar Robert Bradshaw

Merge pull request #58 from drafnel/master

Makefile: rework repo creation target
parents 26b9fdf7 ff668088
...@@ -6,17 +6,14 @@ all: local ...@@ -6,17 +6,14 @@ all: local
local: local:
${PYTHON} setup.py build_ext --inplace ${PYTHON} setup.py build_ext --inplace
.git: REV := $(shell cat .gitrev) TMPDIR = .repo_tmp
.git: TMPDIR := $(shell mktemp -d tmprepo.XXXXXX) .git: .gitrev
.git:
rm -rf $(TMPDIR) rm -rf $(TMPDIR)
git clone $(REPO) $(TMPDIR) git clone -n $(REPO) $(TMPDIR)
cd $(TMPDIR); git checkout -b working $(REV) cd $(TMPDIR) && git reset -q "$(shell cat .gitrev)"
mv $(TMPDIR)/.hgtags .
mv $(TMPDIR)/.hgignore .
mv $(TMPDIR)/.git . mv $(TMPDIR)/.git .
mv $(TMPDIR)/Doc/s5 Doc/s5
rm -rf $(TMPDIR) rm -rf $(TMPDIR)
git ls-files -d | xargs git checkout --
repo: .git repo: .git
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment