gunnar: server/make-helper hg-patch-queue.mk,1.1,1.2
cvs at kolab.org
cvs at kolab.org
Mon Jan 4 16:50:18 CET 2010
Author: gunnar
Update of /kolabrepository/server/make-helper
In directory doto:/tmp/cvs-serv20777/make-helper
Modified Files:
hg-patch-queue.mk
Log Message:
Only download the new source if it does not exist yet. Add a clean target
Index: hg-patch-queue.mk
===================================================================
RCS file: /kolabrepository/server/make-helper/hg-patch-queue.mk,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- hg-patch-queue.mk 4 Dec 2009 09:43:21 -0000 1.1
+++ hg-patch-queue.mk 4 Jan 2010 15:50:16 -0000 1.2
@@ -7,14 +7,13 @@
.PHONY: update
update:
@if [ -d $(PN)-$(NEW_VERSION) ]; then echo "Patches for the new version do already exist!" && exit 1; fi
- rm -rf tmp
mkdir -p tmp
ifeq "x$(COMPRESSION)" "xGZ"
- cd tmp && wget $(SOURCE_URL)/$(PN)-$(OLD_VERSION).tar.gz
+ cd tmp && test -e $(PN)-$(OLD_VERSION).tar.gz || wget $(SOURCE_URL)/$(PN)-$(OLD_VERSION).tar.gz
cd tmp && tar xfz $(PN)-$(OLD_VERSION).tar.gz
endif
ifeq "x$(COMPRESSION)" "xBZ2"
- cd tmp && wget $(SOURCE_URL)/$(PN)-$(OLD_VERSION).tar.bz2
+ cd tmp && test -e $(PN)-$(OLD_VERSION).tar.bz2 || wget $(SOURCE_URL)/$(PN)-$(OLD_VERSION).tar.bz2
cd tmp && tar xfj $(PN)-$(OLD_VERSION).tar.bz2
endif
cd tmp/$(PN)-$(OLD_VERSION) && hg init && hg commit --addremove -m "$(PN)-$(OLD_VERSION)"
@@ -65,3 +64,7 @@
cp tmp/$(PN)-PATCHED/.hg/patches/series $(PN)-$(NEW_VERSION)/
rm -rf tmp
+.PHONY: clean
+clean:
+ rm -rf tmp
+ rm -f *~
More information about the commits
mailing list