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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@
#override_dh_auto_test:
# # No test during build to avoid circular dependency to node-tap
override_dh_fixperms:
dh_fixperms
chmod a+x debian/node-tap-parser/usr/share/nodejs/tap-parser/bin/cmd.js
override_dh_installdocs:
dh_installdocs
dh_nodejs_autodocs
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
override_dh_installman:
help2man --no-discard-stderr -N -n "Test-Anything-Protocol parser for Node.js" ./bin/cmd.js -o debian/tap-parser.1
perl -i -pe 's/cmd.js/tap-parser/g;s/CMD.JS/TAP-PARSER/g' debian/tap-parser.1
dh_installman
else
override_dh_installman:
@echo '**********************************************************'
@echo 'Skip generating man page '
@echo '**********************************************************'
endif
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
override_dh_installexamples:
dh_installexamples
find debian/node-tap-parser/usr/share/doc/node-tap-parser/examples -name '*.js' -exec \
sed -i "s,require[(]['][.][.]/['][)],require('tap-parser'),g" {} \;
else
override_dh_installexamples:
@echo '**********************************************************'
@echo 'Skip generating examples '
@echo '**********************************************************'
endif
|