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 CURL += -k
endif endif
MONOTONE = mtn
branch-portability = portable 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-$* @rm -rf elfutils-master elfutils-$*
# $(MONOTONE) checkout -b com.redhat.elfutils elfutils-master git archive --prefix=elfutils-master/ $(elfutils-base) \
$(MONOTONE) checkout -b com.redhat.elfutils \ | tar xf -
-r $(elfutils-base) elfutils-master git archive --prefix=elfutils-$*/ $(firstword $(branch-$*) $*) \
$(MONOTONE) checkout \ | tar xf -
-b com.redhat.elfutils.$(firstword $(branch-$*) $*) \ cd elfutils-master; autoreconf -i; rm -rf autom4te.cache
elfutils-$* cd elfutils-$*; autoreconf -i; rm -rf autom4te.cache
cd elfutils-master; autoreconf -i; rm -rf autom4te.cache _MTN
cd elfutils-$*; autoreconf -i; rm -rf autom4te.cache _MTN
diff -Nrpu elfutils-master elfutils-$* | \ diff -Nrpu elfutils-master elfutils-$* | \
filterdiff --remove-timestamps --strip=1 --addprefix=elfutils/ > $@.new filterdiff --remove-timestamps --strip=1 --addprefix=elfutils/ > $@.new
mv $@.new $@ mv $@.new $@