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
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
ifndef UPVER
UPVER := $(shell dpkg-parsechangelog | grep ^Version | cut -d\ -f2 | cut -d- -f1 | cut -d+ -f1)
endif
%:
dh $@
override_dh_auto_build:
uglifyjs --output debian/htmlparser.min.js lib/htmlparser.js
get-orig-source:
uscan \
--verbose \
--download-version $(UPVER) \
--force-download \
--destdir . \
--rename
tar xf node-htmlparser_$(UPVER).orig.tar.gz
@echo Cleaning up package...
@rm -rf package/libxmljs.node
@rm -rf package/.DS* package/.tmp* package/.project* package/.settings/ package/testdata/.tmp*
@rm -rf package/pulls/
@rm -rf package/profile*
@rm -rf package/*.js
@rm -rf package/a package/b package/c
@rm -rf package/*.rss package/*.html package/*.log
tar cf node-htmlparser_$(UPVER)+ds1.orig.tar package/
gzip -9 node-htmlparser_$(UPVER)+ds1.orig.tar
rm -rf package/ node-htmlparser_$(UPVER).orig.tar.gz
|