gunnar: server/make-helper patch-series.mk,NONE,1.1

cvs at kolab.org cvs at kolab.org
Mon Jan 11 17:52:00 CET 2010


Author: gunnar

Update of /kolabrepository/server/make-helper
In directory doto:/tmp/cvs-serv19779

Added Files:
	patch-series.mk 
Log Message:
Added a helper for packages providing a patch series.

--- NEW FILE: patch-series.mk ---
# Define the patch directory
PATCHES = patches/$(PACKAGE)-$(VERSION)

# Get the list of patches if there are any in the patch directory
PATCH_FILES = $(shell ls $(PATCHES)/series  2> /dev/null) \
              $(shell ls $(PATCHES)/*.patch 2> /dev/null) \
              $(shell ls $(PATCHES)/*.diff  2> /dev/null)


# Prepare the patch for the package.
package.patch: $(PATCH_FILES)
	rm -f $@
	touch $@
	if [ -e "$(PATCHES)/series" ]; then    \
	  for PATCH in `cat $(PATCHES)/series`;\
	  do                                   \
	    cat $(PATCHES)/$$PATCH >> $@;      \
	  done;                                \
	fi





More information about the commits mailing list