rules 1.01 KB
Newer Older
chris's avatar
chris committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#!/usr/bin/make -f

NAME=nuages
#export PYBUILD_NAME=$(NAME)
#export DH_VERBOSE=1

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

override_dh_auto_install:
	dh_auto_install
	install -m 755 -D manage.py debian/$(NAME)/usr/bin/nuages
	install -m 644 -D nuages/wsgi.py debian/$(NAME)/var/lib/nuages/www
	
	# Move settings in /etc/
	if [ ! -e debian/tmp/etc/$(NAME)/settings ]; then \
		mkdir -p debian/tmp/etc/$(NAME)/; \
	fi
	for f in `find debian/tmp -name 'settings.py'`; do \
		mv -v $$f debian/tmp/etc/$(NAME); \
		ln -sf /etc/$(NAME)/settings.py $$f; \
	done
	for f in `find debian/tmp -name 'local_settings.py'`; do \
		touch debian/tmp/etc/$(NAME)/local_settings.py; \
		rm $$f; \
		ln -sf /etc/$(NAME)/local_settings.py $$f; \
	done

override_dh_auto_test:
chris's avatar
chris committed
30 31 32
	# django 1.4 has a different tests discoverer
	#./manage.py test nuages meetingpoll
	./manage.py test meetingpoll
33

chris's avatar
chris committed
34 35
override_dh_sphinxdoc:
	# needed for wheezy dh_sphinxdoc -X jquery.js -X searchtools.js -X underscore.js -X sidebar.js jquery.js -X websupport.js