| 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_auto_build: |
| 11 |
|
| 12 |
override_dh_fixperms: |
| 13 |
dh_fixperms |
| 14 |
chmod +x $(CURDIR)/debian/node-quote-stream/usr/share/nodejs/quote-stream/bin/cmd.js |
| 15 |
|
| 16 |
override_dh_installexamples: |
| 17 |
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES))) |
| 18 |
dh_installexamples |
| 19 |
# patch example |
| 20 |
find $(CURDIR)/debian/node-quote-stream/usr/share/doc/node-quote-stream/examples/ -name '*.js' -exec \ |
| 21 |
sed -i "s,require\s*[(]\s*'[.][.][^']*'\s*[)],require('quote-stream'),g" {} \; |
| 22 |
else |
| 23 |
@echo '**********************************************************' |
| 24 |
@echo 'Skip examples ' |
| 25 |
@echo '**********************************************************' |
| 26 |
endif |