[cpl-plugin-hawki] 01/01: Create README.Debian only if calibration is downloaded

Ole Streicher olebole-guest at alioth.debian.org
Tue Sep 17 19:56:04 UTC 2013


This is an automated email from the git hooks/post-receive script.

olebole-guest pushed a commit to branch debian-template
in repository cpl-plugin-hawki.

commit d79848a408e3c55f2efd215e97fd7f142f060f23
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Tue Sep 17 21:51:14 2013 +0200

    Create README.Debian only if calibration is downloaded
---
 debian/{README.Debian => README.Debian.in} |    0
 debian/rules                               |    5 +++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/README.Debian b/debian/README.Debian.in
similarity index 100%
rename from debian/README.Debian
rename to debian/README.Debian.in
diff --git a/debian/rules b/debian/rules
index 8442b8f..38cefa0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,8 +13,8 @@ PIPELINE ?= $(shell echo '$(DEBPKGNAME)' | sed -e 's/cpl-plugin-//')
 debian_files:
 	if [ -d calib/cal ] ; then \
 	    dfiles=".install -calib.install" ; \
-	    rm -f debian/README.Debian ; \
 	else \
+	    cp -f debian/README.Debian.in debian/README.Debian ; \
 	    dfiles=".install -calib.postinst -calib.prerm -calib.lintian-overrides" ; \
 	fi ; \
 	for f in $$dfiles ; do \
@@ -32,7 +32,8 @@ override_dh_clean:
 	      debian/${DEBPKGNAME}-calib.lintian-overrides \
 	      debian/${DEBPKGNAME}-calib.install \
 	      debian/${DEBPKGNAME}-calib.postinst \
-              debian/${DEBPKGNAME}-calib.prerm
+              debian/${DEBPKGNAME}-calib.prerm \
+              debian/README.Debian
 
 override_dh_auto_configure:
 	dh_auto_configure -- --prefix=/usr/

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/cpl-plugin-hawki.git



More information about the debian-science-commits mailing list