From e3aeda0917e24d33cdaab95a17b2ccaced1475e2 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 17 Nov 2008 23:24:12 +0100 Subject: [PATCH] factor out exporting of quilt series to make snippet Signed-off-by: martin f. krafft --- debian/rules | 1 + debian/topgit.mk | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 debian/topgit.mk diff --git a/debian/rules b/debian/rules index d331f92..74e8edd 100755 --- a/debian/rules +++ b/debian/rules @@ -4,6 +4,7 @@ #export DH_VERBOSE=1 include /usr/share/quilt/quilt.make +include debian/topgit.mk build: build-stamp build-stamp: patch diff --git a/debian/topgit.mk b/debian/topgit.mk new file mode 100644 index 0000000..86099ff --- /dev/null +++ b/debian/topgit.mk @@ -0,0 +1,8 @@ +tg-export: TG_BRANCHES ?= $(shell tg summary -t) +tg-export: __TG_SUBST_COMMA := , +tg-export: __TG_SUBST_EMPTY := +tg-export: __TG_SUBST_SPACE := $(__TG_SUBST_EMPTY) $(__TG_SUBST_EMPTY) +tg-export: + test -d debian/patches && rm -r debian/patches || : + tg export -b $(subst $(__TG_SUBST_SPACE),$(__TG_SUBST_COMMA),$(TG_BRANCHES)) --quilt debian/patches +.PHONY: tg-export -- 2.30.2