[banshee/stable-1.6] [build] added a package-patch target



commit f5147d834f7933525359bec1563cbb8aa6e95ebd
Author: Aaron Bockover <abockover novell com>
Date:   Tue Apr 27 11:10:24 2010 -0400

    [build] added a package-patch target
    
    Generates a patch since a given object that is suitable for applying to
    a tarball/package.

 Makefile.am |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 56b856d..232e01b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -123,6 +123,18 @@ merge-docs:
 	make -C docs/Hyena merge; \
 	make -C docs/Banshee merge;
 
+package-patch:
+	@if [ -z '$(SINCE)' ]; then echo 'Specify a SINCE (e.g. make package-patch SINCE=1.6.0)'; exit 1; fi;
+	@if [ -f 'since-$(SINCE).patch' ]; then echo 'since-$(SINCE).patch already exists'; exit 1; fi;
+	@git diff-tree -p "$(SINCE).." | filterdiff \
+		-x 'a/Makefile.am' \
+		-x 'a/profile-configure' \
+		-x 'a/po/*' \
+		-x \*.csproj \
+		-x \*.sln \
+		-x \*extras/\* &> 'since-$(SINCE).patch'
+	@echo 'since-$(SINCE).patch is ready'
+
 EXTRA_DIST = \
 	intltool-extract.in \
 	intltool-merge.in \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]