]> git.donarmstrong.com Git - dactyl.git/commitdiff
get-orig-source target
authorMichael Schutte <michi@uiae.at>
Tue, 26 Jul 2011 09:35:20 +0000 (11:35 +0200)
committerMichael Schutte <michi@uiae.at>
Tue, 26 Jul 2011 09:35:20 +0000 (11:35 +0200)
debian/rules

index 3222756784752f1b723945ccecc9da3141130d19..c084bdc09304a58e9b69a0de87e28fc22c138958 100755 (executable)
@@ -25,3 +25,20 @@ override_dh_installchangelogs:
        for PACKAGE in $(PACKAGES); \
                do dh_installchangelogs -p xul-ext-$$PACKAGE $$PACKAGE/NEWS; \
                done
+
+UPSTREAM_REPO=../upstream
+UPSTREAM_REVISION=pentadactyl-1.0b6
+UPSTREAM_DEST=$(shell pwd)/dactyl.tar.gz
+
+get-orig-source:
+       rm -f .hg-repo-created
+       test -d $(UPSTREAM_REPO) || ( cd `dirname $(UPSTREAM_REPO)` && \
+               hg clone http://dactyl.googlecode.com/hg/ `basename $(UPSTREAM_REPO)` && \
+               touch .hg-repo-created )
+       hg --cwd $(UPSTREAM_REPO) pull
+       hg --cwd $(UPSTREAM_REPO) update
+       hg --cwd $(UPSTREAM_REPO) archive \
+               -r $(UPSTREAM_REVISION) -p dactyl \
+               -X .hgtags -X common/javascript.vim \
+               -t tgz $(UPSTREAM_DEST)
+       test ! -f .hg-repo-created || ( rm -rf $(UPSTREAM_REPO); rm -f .hg-repo-created )