[Fusionforge-commits] r9521 - trunk/3rd-party/mailman

Christian Bayle cbayle at libremir.placard.fr.eu.org
Mon Apr 19 19:08:31 CEST 2010


Author: cbayle
Date: 2010-04-19 19:08:30 +0200 (Mon, 19 Apr 2010)
New Revision: 9521

Modified:
   trunk/3rd-party/mailman/Makefile
Log:
Auto extract src if needed


Modified: trunk/3rd-party/mailman/Makefile
===================================================================
--- trunk/3rd-party/mailman/Makefile	2010-04-19 16:52:09 UTC (rev 9520)
+++ trunk/3rd-party/mailman/Makefile	2010-04-19 17:08:30 UTC (rev 9521)
@@ -4,13 +4,20 @@
 DIST=$(DISTDEBIAN)$(DISTREDHAT)$(DISTSUSE)
 
 PKGDIR=mailman-2.1.13
-MINOR=$(shell head -1 $(PKGDIR)/debian/changelog | sed 's/.*(.*-\([^-]*\)).*/\1/')
+PKGDSC=$(shell ls *.dsc | sort | head -1)
+MINOR=$(shell grep ^Version $(PKGDSC) | sed 's/.[^-]*-\(.*\)/\1/')
 
 PARAM=PKGDIR=$(PKGDIR) svnrev=$(MINOR)
 
-default:
+default: $(PKGDIR)
 	@make -f Makefile.$(DIST) $(PARAM) default
 	@cat ../../Makefile.$(DIST) | grep '^.*:.*#$$' | sed 's/FUSIONFORGE/$(FUSIONFORGE)/' | sed 's/^\(.*:\).*#\(.*\)#$$/\1		\2/'
 
-%:
+%: $(PKGDIR)
 	@make -f Makefile.$(DIST) $(PARAM) $@
+
+$(PKGDIR):
+	dpkg-source -x $(PKGDSC)
+
+clean:
+	rm -rf $(PKGDIR)




More information about the Fusionforge-commits mailing list