File: rules

package info (click to toggle)
prosody-modules 0.0~hg20210130.dd3bfe8f182e%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,716 kB
  • sloc: javascript: 3,389; php: 134; python: 69; perl: 50; sh: 45; makefile: 17
file content (24 lines) | stat: -rwxr-xr-x 805 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

%:
	dh $@

override_dh_auto_configure:
	for readme in $$(grep ^mod_ debian/install | sed 's,[/ ].*,/README.*,'); do \
	    if [ -f $$readme ]; then \
	        cp $$readme debian/README_$$(dirname $$readme).$$(echo $$readme | cut -d '.' -f 2); \
	    fi; \
	done

override_dh_install:
	uglifyjs -o mod_invites_page/static/platform.min.js debian/missing-sources/platform.js
	uglifyjs -o mod_invites_page/static/qrcode.min.js debian/missing-sources/qrcode.js
	dh_install
	find debian/prosody-modules/ -type f -name \*.lua -exec chmod 644 {} \;
	find debian/prosody-modules/ -type f -name README.\* -delete
	find debian/prosody-modules/ -type f -name share\*.php -delete

override_dh_auto_clean:
	rm -f debian/README_mod_*.*