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-subarg/usr/share/doc/node-subarg/examples/ -name '*.js' -exec \ |
| 15 | sed -i "s,require\s*[(]\s*'[.][.][^']*'\s*[)],require('node-subarg'),g" {} \; |
| 16 | endif |