File: rules

package info (click to toggle)
supervisor 4.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,540 kB
  • sloc: python: 29,333; makefile: 78; sh: 75
file content (28 lines) | stat: -rwxr-xr-x 721 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
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f
export PYBUILD_DESTDIR_python3=debian/supervisor/
%:
	dh $@ --with sphinxdoc,python3 --buildsystem=pybuild

override_dh_auto_install:
	for i in `find supervisor -type f`; do \
		sed '1s,#!.*[pP][yY][Tt][hH][oO][nN][^ ]*\(.*\),#!/usr/bin/python3\1,' \
			$$i > $$i.temp; \
		if cmp --quiet $$i $$i.temp; then \
			rm -f $$i.temp; \
		else \
			mv -f $$i.temp $$i; \
			chmod 755 $$i; \
			echo "fixed interpreter: $$i"; \
		fi; \
	done
	dh_auto_install
	install -d debian/tmp/etc/supervisor/conf.d
	install -m 644 debian/supervisord.conf debian/tmp/etc/supervisor/supervisord.conf

override_dh_auto_build:
	$(MAKE) -C docs html
	dh_auto_build

override_dh_auto_clean:
	rm -rf docs/.build
	dh_auto_clean