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

tille pushed a commit to branch debian/unstable
in repository bedtools.

commit f01f1ad9388f8d74bd781f22d9b81d978c03a5a6
Author: Andreas Tille <[email protected]>
Date:   Tue Jul 7 18:10:38 2015 +0200

    Make sure all *.sh scripts of the test suite have a proper '#!/bin/bash' 
line and the executable flag set
---
 debian/changelog | 2 ++
 debian/rules     | 9 +++++++++
 2 files changed, 11 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index c92fe80..fd47b1c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,8 @@ bedtools (2.24.0-1) UNRELEASED; urgency=medium
   * New upsteam version
   * Bash completions now go to /usr/share/bash-completion/completions
   * Strip executable flag from all *.bed files
+  * Make sure all *.sh scripts of the test suite have a proper '#!/bin/bash'
+    line and the executable flag set
 
  -- Andreas Tille <[email protected]>  Tue, 07 Jul 2015 16:40:52 +0200
 
diff --git a/debian/rules b/debian/rules
index 6c6bc8e..ab7f5e5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,11 +16,20 @@ override_dh_installchangelogs:
 override_dh_install:
        dh_install
        rm -f $(CURDIR)/debian/$(DEBPKGNAME)/usr/bin/groupBy # distributed in 
the filo package.
+       # make sure all *.sh files are featuring a '#!/bin/bash' as first line
+       # since there are at least two files 
(test/intersect/{new_test-intersect.sh,performanceTest.sh}
+       # requiring bash this is taken for all scripts instead of checking 
first via /bin/sh -n
+       for sh in `find $(CURDIR)/debian -name "*.sh"` ; do \
+           if ! head -n1 $${sh} | grep -q '^#! */bin/[ba]*sh' ; then \
+               sed -i '1 i #!/bin/bash' $${sh} ; \
+           fi ; \
+       done
 
 override_dh_fixperms:
        dh_fixperms
        chmod -x 
$(CURDIR)/debian/$(DEBPKGNAME)/usr/share/bedtools/genomes/*.genome
        find $(CURDIR)/debian -name "*.bed" -executable -exec chmod -x \{\} \;
+       find $(CURDIR)/debian -name "*.sh"  -not -executable -exec chmod +x 
\{\} \;
 
 get-orig-source:
        uscan --no-symlink --force-download --download-version 
$(DEB_UPSTREAM_VERSION)

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

_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to