File: rules

package info (click to toggle)
lfm 0.91.2-1.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 404 kB
  • ctags: 288
  • sloc: python: 5,786; makefile: 11
file content (23 lines) | stat: -rwxr-xr-x 702 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

DEB_PYTHON_SYSTEM=pysupport

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

DEB_COMPRESS_EXCLUDE := COPYING NEWS README ChangeLog

binary-post-install/lfm::
	cp ChangeLog debian/lfm/usr/share/doc/lfm/

	#   Make .py files executable
	chmod +x debian/lfm/usr/share/python-support/lfm/lfm/lfm.py
	chmod +x debian/lfm/usr/share/python-support/lfm/lfm/pyview.py

	#   Compress ChangeLog file
	cp ChangeLog debian/lfm/usr/share/doc/lfm/
	gzip -9 debian/lfm/usr/share/doc/lfm/ChangeLog

	#   Remove COPYING file, as it is already included in the copyright
	rm debian/lfm/usr/share/doc/lfm/COPYING