From 363ae0d3647133e7db41e8b17af2cf4b8f10ee52 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Wed, 6 Jan 2010 00:43:33 +0200 Subject: Generate a standard header for the patch. --- Makefile | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 834048b..bc1af35 100644 --- a/Makefile +++ b/Makefile @@ -48,6 +48,7 @@ DAHDI_LINUX_BRANCH =trunk DAHDI_LINUX_URL = http://svn.asterisk.org/svn/dahdi/linux/$(DAHDI_LINUX_BRANCH) SVN_DIR_SRC = dahdi-svn-orig SVN_DIR_DST = dahdi-svn-new +ORIGIN = http://git.tzafrir.org.il/?p=dahdi-extra.git BASE_DIR = drivers/dahdi MODULE_DIRS = $(BASE_DIR) $(BASE_DIR)/zaphfc drivers/staging/echo @@ -86,6 +87,21 @@ else HAS_KSRC:=no endif +PATCH_HEADER = \ + Subject: dahdi-extra: out-of-tree DAHDI drivers \ + \nOrigin: $(ORIGIN) \ + \nForwarded: No \ + \nLast-Update: `date -I` \ + \n \ + \nThis patch includes a number of out-of-tree DAHDI drivers from the \ + \ndahdi-extra repository. They are all out-of-tree and are highly likely \ + \n not to be included in DAHDI-linux in the forseeable future. \ + \n \ + \nGit-Commit: `git show-ref -s -h HEAD` \ + \n--- \ + \n \ + + CHECKSTACK=$(KSRC)/scripts/checkstack.pl DAHDI_BUILD_ALL:=m @@ -153,7 +169,8 @@ gen-patch: cat drivers/dahdi/Kconfig >>$(SVN_DIR_DST)/drivers/dahdi/Kconfig sed -e '/^####### END OF DATA ########/,$$d' drivers/dahdi/Kbuild \ | sed -i -e R/dev/stdin $(SVN_DIR_DST)/drivers/dahdi/Kbuild - diff -urN $(SVN_DIR_SRC) $(SVN_DIR_DST) >$(DAHDI_LINUX_DIFF) \ + echo -e "$(PATCH_HEADER)" >$(DAHDI_LINUX_DIFF) + diff -urN $(SVN_DIR_SRC) $(SVN_DIR_DST) >>$(DAHDI_LINUX_DIFF) \ || [ $$? -eq 1 ] -- cgit v1.2.3