[med-svn] [python-pysam] 01/01: In case we try to build with Git checkout which does not contain Cython generated files check for these files before trying to move them

Andreas Tille tille at debian.org
Fri Sep 26 07:42:25 UTC 2014


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

tille pushed a commit to branch master
in repository python-pysam.

commit 867b474a697d562daf9d1856cacf140bc01ae0ec
Author: Andreas Tille <tille at debian.org>
Date:   Fri Sep 26 09:41:32 2014 +0200

    In case we try to build with Git checkout which does not contain Cython generated files check for these files before trying to move them
---
 debian/rules | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index c410ac9..b9439ae 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,8 +15,10 @@ HTSLIBDIR  := /usr/lib/$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 # Make sure Cython is recreating some c-files.  To enable building twice in a
 # row these will be saved in advance and restored afterwards
 debian/savefiles:
-	mkdir -p debian/savefiles
-	mv `grep -l "Generated by Cython" pysam/*.c` debian/savefiles
+	if grep -q -l "Generated by Cython" pysam/*.c ; then \
+	    mkdir -p debian/savefiles ; \
+	    mv `grep -l "Generated by Cython" pysam/*.c` debian/savefiles ; \
+	fi
 
 override_dh_clean:
 	dh_clean

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-pysam.git



More information about the debian-med-commit mailing list