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
|
#!/usr/bin/make -f
DATESTAMP = $(shell date +%Y%m%d)
UVERSION = $(shell \
dpkg-parsechangelog|grep ^Version|awk '{print $$2}'|sed 's/[~+-].*//')
VERSEP = ~
UPSTREAMGIT = git://gitorious.org/goldendict/goldendict.git
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/qmake.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
export PREFIX=/usr
QMAKE = qmake-qt4
install/goldendict::
find debian/goldendict -type f -name '*.*' -exec chmod 0644 '{}' +
pod2man debian/goldendict.pod debian/goldendict.1
clean::
rm -f debian/goldendict.1 version.txt
git-pull: clean
git remote show gitorious || \
git remote add gitorious $(UPSTREAMGIT)
git pull gitorious master
dch -m -D experimental \
--newversion $(UVERSION)$(VERSEP)git$(DATESTAMP)-1 \
"New GIT-snapshot"
cd .. && tar --exclude=debian --exclude=.git \
-czvf \
goldendict_$(UVERSION)$(VERSEP)git$(DATESTAMP).orig.tar.gz \
goldendict-$(UVERSION)$(VERSEP)git$(DATESTAMP)
|