3 PACKAGES=pentadactyl # teledactyl melodactyl
4 VERSION=$(shell dpkg-parsechangelog | \
5 sed -n -e '/^Version:/ { s/^Version:\s*//; s/[^a-z0-9]/_/g; p }')
10 override_dh_auto_build:
11 make DIRS=$(PACKAGES) MANGLE=chrome XPI_FILES='bootstrap.js NEWS' xpi
13 override_dh_auto_install:
14 for PACKAGE in $(PACKAGES); \
15 do install-xpi -p xul-ext-$$PACKAGE downloads/$$PACKAGE-*.xpi; \
18 override_dh_auto_clean:
19 make DIRS=$(PACKAGES) clean
20 for PACKAGE in $(PACKAGES); \
21 do rm -f $$PACKAGE/chrome.zip; \
24 override_dh_installchangelogs:
25 for PACKAGE in $(PACKAGES); \
26 do dh_installchangelogs -p xul-ext-$$PACKAGE $$PACKAGE/NEWS; \
29 UPSTREAM_REPO=../upstream
30 UPSTREAM_REVISION=pentadactyl-1.0b6
31 UPSTREAM_DEST=$(shell pwd)/dactyl.tar.gz
34 rm -f .hg-repo-created
35 test -d $(UPSTREAM_REPO) || ( cd `dirname $(UPSTREAM_REPO)` && \
36 hg clone http://dactyl.googlecode.com/hg/ `basename $(UPSTREAM_REPO)` && \
37 touch .hg-repo-created )
38 hg --cwd $(UPSTREAM_REPO) pull
39 hg --cwd $(UPSTREAM_REPO) update
40 hg --cwd $(UPSTREAM_REPO) archive \
41 -r $(UPSTREAM_REVISION) -p dactyl \
42 -X .hgtags -X common/javascript.vim \
43 -t tgz $(UPSTREAM_DEST)
44 test ! -f .hg-repo-created || ( rm -rf $(UPSTREAM_REPO); rm -f .hg-repo-created )