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 %:
8 dh $@
9
10 override_dh_installexamples:
11 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
12 dh_installexamples
13 # patch example
14 find $(CURDIR)/debian/node-stream-splicer/usr/share/doc/node-stream-splicer/examples/ -name '*.js' -exec \
15 sed -i "s,require\s*[(]\s*'[.][.][^']*'\s*[)],require('stream-splicer'),g" {} \;
16 else
17 @echo '**********************************************************'
18 @echo 'Skip example '
19 @echo '**********************************************************'
20 endif