File: rules

package info (click to toggle)
cakephp 1.3.2-1.1%2Bdeb6u11
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 8,172 kB
  • ctags: 31,132
  • sloc: php: 111,473; sql: 49; makefile: 8; sh: 4
file content (20 lines) | stat: -rwxr-xr-x 686 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

%:
	dh $@

override_dh_install:
	# cakephp
	cp -r cake/libs cake/config cake/tests cake/*.php debian/cakephp/usr/share/php/cake

	# cakephp-scripts
	cp -r app cake/console debian/cakephp-scripts/usr/share/php/cake/
	cp -r cake/console/cake debian/cakephp-scripts/usr/bin

	# Remove unnecessary 'empty' files and directories
	# These were added by upstream to workaround braindead MacOS X extracting
	# utilities that would silently not create empty directories
	find debian/cakephp debian/cakephp-scripts -type f -name empty -size 0 -print0 | xargs -0 rm -f

	# Remove unnecessary executable bits
	find debian/cakephp -type f -perm /111 -print0 | xargs -0r chmod -x