From: Andreas Tille Date: Fri, 26 Sep 2014 07:41:32 +0000 (+0200) Subject: In case we try to build with Git checkout which does not contain Cython generated... X-Git-Tag: archive/raspbian/0.22.0+ds-1+rpi1~1^2^2~374 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=867b474a697d562daf9d1856cacf140bc01ae0ec;p=python-pysam.git 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 --- 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