[med-svn] [fast5] 02/02: Create dir before moving files

Andreas Tille tille at debian.org
Sun Sep 17 05:20:59 UTC 2017


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

tille pushed a commit to branch master
in repository fast5.

commit 9c439a49b9651f1faf25e2db107680a60a46868c
Author: Andreas Tille <tille at debian.org>
Date:   Sun Sep 17 07:20:49 2017 +0200

    Create dir before moving files
---
 debian/changelog |  2 ++
 debian/rules     | 13 ++++++++-----
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 3a3e257..199761d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ fast5 (0.6.2-5) UNRELEASED; urgency=medium
 
   * Team upload
   * Fix clean target
+  * Create dir before moving files
+    Closes: #875991
 
  -- Andreas Tille <tille at debian.org>  Sun, 17 Sep 2017 07:15:13 +0200
 
diff --git a/debian/rules b/debian/rules
index fba71ad..94f4553 100755
--- a/debian/rules
+++ b/debian/rules
@@ -35,11 +35,14 @@ override_dh_compress:
 
 override_dh_install:
 	dh_install
+	mkdir -p debian/python-fast5-bin/usr/bin/
 	mv debian/python-fast5/usr/bin/* debian/python-fast5-bin/usr/bin/
 	mv debian/python3-fast5/usr/bin/* debian/python3-fast5-bin/usr/bin/
 	rm -rf debian/python-fast5/usr/bin/ debian/python3-fast5/usr/bin/
-	sed -i s'%"hdf5_tools.hpp"%<fast5/hdf5_tools.hpp>%' debian/libfast5-dev/usr/include/fast5.hpp
-	sed -i s'%"fast5_version.hpp"%<fast5/fast5_version.hpp>%' debian/libfast5-dev/usr/include/fast5.hpp
-	sed -i s'%"logger.hpp"%<fast5/logger.hpp>%' debian/libfast5-dev/usr/include/fast5.hpp
-	sed -i s'%"Huffman_Packer.hpp"%<fast5/Huffman_Packer.hpp>%' debian/libfast5-dev/usr/include/fast5.hpp
-	sed -i s'%"Bit_Packer.hpp"%<fast5/Bit_Packer.hpp>%' debian/libfast5-dev/usr/include/fast5.hpp
+	if [ -e debian/libfast5-dev/usr/include/fast5.hpp ] ; then \
+	    sed -i s'%"hdf5_tools.hpp"%<fast5/hdf5_tools.hpp>%' debian/libfast5-dev/usr/include/fast5.hpp ; \
+	    sed -i s'%"fast5_version.hpp"%<fast5/fast5_version.hpp>%' debian/libfast5-dev/usr/include/fast5.hpp ; \
+	    sed -i s'%"logger.hpp"%<fast5/logger.hpp>%' debian/libfast5-dev/usr/include/fast5.hpp ; \
+	    sed -i s'%"Huffman_Packer.hpp"%<fast5/Huffman_Packer.hpp>%' debian/libfast5-dev/usr/include/fast5.hpp ; \
+	    sed -i s'%"Bit_Packer.hpp"%<fast5/Bit_Packer.hpp>%' debian/libfast5-dev/usr/include/fast5.hpp ; \
+	fi

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



More information about the debian-med-commit mailing list