Rejigger patch generation magic for git.
This commit is contained in:
parent
9d47a05fbc
commit
69a951ae90
21
Makefile
21
Makefile
@ -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 $@
|
||||||
|
Loading…
Reference in New Issue
Block a user