[Cdd-commits] r1305 - blends/trunk/blends/debian
CDD Subversion Commit
noreply at alioth.debian.org
Tue Jan 6 14:54:04 UTC 2009
Author: tille
Date: Tue Jan 6 14:54:04 2009
New Revision: 1305
Modified:
blends/trunk/blends/debian/rules
Log:
Variable for package source name.
Modified: blends/trunk/blends/debian/rules
==============================================================================
--- blends/trunk/blends/debian/rules (original)
+++ blends/trunk/blends/debian/rules Tue Jan 6 14:54:04 2009
@@ -7,8 +7,9 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+pkg=blends
VERSION := $(shell grep '^blends *(.\+)' debian/changelog | head -n 1 | sed 's/^blends \+(\(.\+\)) .*/\1/' )
-DISTDIR := blends-$(VERSION)
+DISTDIR := $(pkg)-$(VERSION)
build: build-stamp
build-stamp:
@@ -39,8 +40,8 @@
dh_testdir
dh_testroot
# avoid installing doc directory for transitional packages
- dh_installchangelogs -pblends-dev -pblends-common -pblends-doc
- dh_installdocs -pblends-dev -pblends-common -pblends-doc
+ dh_installchangelogs -p$(pkg)-dev -p$(pkg)-common -p$(pkg)-doc
+ dh_installdocs -p$(pkg)-dev -p$(pkg)-common -p$(pkg)-doc
dh_installexamples
dh_installman
dh_lintian
@@ -72,7 +73,7 @@
ln -sf sources.list.unstable $(DISTDIR)/sources.list
# ln -s control.stub $(DISTDIR)/examples/debian/control
rm -f `find . -name "*~"`
- GZIP=-9 tar -czf ../dis_$(VERSION).tar.gz $(DISTDIR)
+ GZIP=-9 tar -czf ../$(pkg)_$(VERSION).tar.gz $(DISTDIR)
rm -rf $(DISTDIR)
binary: binary-indep binary-arch
More information about the Cdd-commits
mailing list