File: rules

package info (click to toggle)
python-django-contact-form 0%2Bhg65-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 152 kB
  • ctags: 79
  • sloc: python: 221; makefile: 137
file content (17 lines) | stat: -rwxr-xr-x 539 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f
#export DH_VERBOSE=1
export PYBUILD_NAME=contact_form
export PYBUILD_SYSTEM=distutils

%:
	dh $@ --with python2 --buildsystem=pybuild

get-orig-source:
	hg clone https://bitbucket.org/ubernostrum/django-contact-form/
	set -e; \
	revno=`hg tip --template "{rev}" -R django-contact-form` \
	dirname=python-django-contact-form-0+hg$$revno; \
	hg archive -R django-contact-form $$dirname; \
	rm $$dirname/.hg*; \
	tar zcf python-django-contact-form_0+hg$$revno.orig.tar.gz $$dirname; \
	rm -rf django-contact-form $$dirname