File: rules

package info (click to toggle)
pear-channels 0~20141011-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 172 kB
  • sloc: xml: 393; makefile: 16; sh: 4
file content (19 lines) | stat: -rwxr-xr-x 566 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f
%:
	dh $@

override_dh_install:
	/usr/bin/pear -d php_dir=$(CURDIR)/debian/tmp/without list-channels
	find $(CURDIR)/channels -type f -name channel.xml | xargs -I{} \
		/usr/bin/pear -c $(CURDIR)/debian/tmp/.pearrc \
		-d php_dir=$(CURDIR)/debian/tmp/with channel-add {}
	for i in with without; do \
		find $(CURDIR)/debian/tmp/$$i -type f \
		| sed "s,^$(CURDIR)/debian/tmp/$$i,," \
		| sort >$(CURDIR)/debian/tmp/list$$i ; \
		done
	dh_install

get-orig-source:
	rm -rf $(CURDIR)/channels
	wget -i $(CURDIR)/debian/urls -x -P $(CURDIR)/channels