File: rules

package info (click to toggle)
soya-doc 0.14-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 15,264 kB
  • ctags: 1,039
  • sloc: python: 4,334; makefile: 9; sh: 5
file content (18 lines) | stat: -rwxr-xr-x 847 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk

DEB_COMPRESS_EXCLUDE := examples
DEB_FIXPERMS_EXCLUDE := .py .sh

# In order to regenerate 'debian/control' :
#    DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean
# Then check manually if everything's ok

binary-install/python-soya-doc::
	find debian/python-soya-doc/usr/share/ -type f ! -name "*.py" -a ! -name '*.sh' -exec chmod -R a-x {} \;
	find debian/python-soya-doc/usr/share/ -type f -name "*.py" -exec python debian/fix-shebang.py {} \;
	find debian/python-soya-doc -depth -name ".arch-ids" -exec rm -rf {} \;
	find debian/python-soya-doc -name "LICENSE" -exec rm -rf {} \;
	# Move everything from tutorial in examples directory
	mv debian/python-soya-doc/usr/share/doc/python-soya-doc/tutorial debian/python-soya-doc/usr/share/doc/python-soya-doc/examples