Rejigger patch generation magic for git.

This commit is contained in:
roland 2008-12-24 10:14:24 +00:00
parent 9d47a05fbc
commit 69a951ae90
1 changed files with 9 additions and 12 deletions

View File

@ -28,22 +28,19 @@ ifneq (,$(CURL))
CURL += -k
endif
MONOTONE = mtn
branch-portability = portable
elfutils-base = t:elfutils-$(VERSION)
elfutils-base = elfutils-$(VERSION)
elfutils-base = master
elfutils-%.patch: elfutils-$(VERSION).tar.gz Makefile
elfutils-%.patch: elfutils-$(VERSION).tar.bz2 Makefile
@rm -rf elfutils-master elfutils-$*
# $(MONOTONE) checkout -b com.redhat.elfutils elfutils-master
$(MONOTONE) checkout -b com.redhat.elfutils \
-r $(elfutils-base) elfutils-master
$(MONOTONE) checkout \
-b com.redhat.elfutils.$(firstword $(branch-$*) $*) \
elfutils-$*
cd elfutils-master; autoreconf -i; rm -rf autom4te.cache _MTN
cd elfutils-$*; autoreconf -i; rm -rf autom4te.cache _MTN
git archive --prefix=elfutils-master/ $(elfutils-base) \
| tar xf -
git archive --prefix=elfutils-$*/ $(firstword $(branch-$*) $*) \
| tar xf -
cd elfutils-master; autoreconf -i; rm -rf autom4te.cache
cd elfutils-$*; autoreconf -i; rm -rf autom4te.cache
diff -Nrpu elfutils-master elfutils-$* | \
filterdiff --remove-timestamps --strip=1 --addprefix=elfutils/ > $@.new
mv $@.new $@