[Debian-astro-commits] [cpl-plugin-template] 18/76: Create README.Debian only if calibration is downloaded

Ole Streicher olebole at moszumanska.debian.org
Wed Sep 23 09:59:47 UTC 2015


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

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

commit b29692e5bd5fb6bf6f90609ee327c0c2c9bf77ef
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-astro/packages/cpl-plugin-template.git



More information about the Debian-astro-commits mailing list