Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 include /usr/share/dpkg/pkg-info.mk
8
9 CS=${shell perl -le '$$_="$(DEB_VERSION)";/-(.*)$$/;$$rev=$$1;@v=split/(?:\.|\+~cs|-)/;print "cs".join(".",$$v[0]+$$v[3],$$v[1]+$$v[4],$$v[2]+$$v[5])."-$$rev"'}
10
11 %:
12 dh $@
13
14 cs:
15 echo $(CS)
16
17 override_dh_fixperms:
18 dh_fixperms
19 find debian/node-ipydatagrid -name '*.svg' -exec chmod 644 '{}' \;
20
21 override_dh_installdocs:
22 dh_installdocs
23 dh_nodejs_autodocs auto_dispatch
24
25 override_dh_gencontrol:
26 dh_gencontrol -pnode-ipydatagrid -- -v$(DEB_VERSION)
27 set -e;for c in `pkgjs-utils root_components_list 2>/dev/null`; do \
28 NAME=`pkgjs-pjson $$c name`; \
29 VERSION=`pkgjs-pjson $$c version`; \
30 PKG=node-`pkgjs-utils normalize_name $$NAME`; \
31 URL=`pkgjs-pjson $$c homepage`; \
32 if test "$$URL"==""; then \
33 URL=`pkgjs-pjson $$c repository url|sed -e 's/.git$$//'`; \
34 fi; \
35 dh_gencontrol -p$$PKG -- -v$${VERSION}+~$(CS) -DHomepage=$$URL; \
36 done