File: rules

package info (click to toggle)
php-getid3 1.9.3-1%2Bdeb7u2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 2,500 kB
  • sloc: php: 28,743; makefile: 8
file content (17 lines) | stat: -rwxr-xr-x 769 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

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

# Don't compress the examples.
DEB_COMPRESS_EXCLUDE_DEFAULT := .php

# 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/php-getid3::
	mv $(CURDIR)/debian/php-getid3/usr/share/doc/php-getid3/changelog.txt $(CURDIR)/debian/php-getid3/usr/share/doc/php-getid3/changelog 
	find $(CURDIR)/debian/php-getid3/usr/share/doc/php-getid3/examples -maxdepth 1 -mindepth 1 | while read i; do \
		sed -i -e s#../getid3/getid3.php#/usr/share/php/getid3/getid3.php# "$$i"; \
	done
	rm -rf "$(CURDIR)/debian/php-getid3/usr/share/php/getid3/!delete any module you don't like, but check dependencies.txt"