debian swirl logo

Back to the packages list trac-wikitablemacro

#!/usr/bin/make -f

#export DH_VERBOSE=1
DEB_PYTHON2_MODULE_PACKAGES= trac-wikitablemacro

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk

rev = $$(tail -1 $(temp)/svn-export-log | sed -e 's/^.* \([0-9]\+\).*/\1/')
temp = $$(< temp)

get-orig-source:
		echo $$(mktemp -d) > temp
		svn export http://trac-hacks.org/svn/wikitablemacro/0.11 $(temp)/source | tee $(temp)/svn-export-log
		mv $(temp)/source $(temp)/trac-wikitablemacro-0.$(rev)
		tar pczf $(CURDIR)/../trac-wikitablemacro_0.$(rev).orig.tar.gz -C $(temp) trac-wikitablemacro-0.$(rev)
		$(RM) -r $(temp) temp

.PHONY: get-orig-source

clean::
		$(RM) -r temp WikiTableMacro.egg-info

Builds:

trac-wikitablemacro
table from an arbitrary sql for trac