File: rules

package info (click to toggle)
php-codesniffer 1.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,092 kB
  • sloc: php: 30,445; xml: 3,768; makefile: 15; pascal: 8; sh: 6
file content (18 lines) | stat: -rwxr-xr-x 538 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

%:
	dh $@ --buildsystem=phppear --with phppear

override_dh_link:
	dh_link -O--buildsystem=phppear
	mv debian/php-codesniffer/usr/bin/scripts debian/php-codesniffer/usr/share/doc/php-codesniffer
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	chmod +x ./debian/tests_run
	./debian/tests_run
endif
	mkdir -p debian/php-codesniffer/etc/php-codesniffer
	echo "<?php \n\
 \$$phpCodeSnifferConfig = array ( \n\
  'default_standard' => 'PEAR', \n\
) \n\
?>" >debian/php-codesniffer/etc/php-codesniffer/CodeSniffer.conf