[med-svn] [paleomix] 03/04: Fix permission of r scripts properly

Andreas Tille tille at debian.org
Wed Feb 22 16:02:33 UTC 2017


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

tille pushed a commit to branch master
in repository paleomix.

commit 5c07530fe75a84007b82e44a67bdd9fa3391a931
Author: Andreas Tille <tille at debian.org>
Date:   Wed Feb 22 13:39:18 2017 +0100

    Fix permission of r scripts properly
---
 debian/rules | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index ffaf04a..87a0e18 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,4 +15,10 @@ override_dh_install:
 
 override_dh_fixperms:
 	dh_fixperms
-	find debian -iname "*.r" -exec chmod +x \{\} \;
+	for rs in `find debian -iname "*.r"` ; do \
+	    if head -n 1 $$rs | grep -q '^#!/usr/bin/.*Rscript' ; then \
+	        chmod +x $$rs ; \
+	    else \
+	        chmod -x $$rs ; \
+	    fi ; \
+	done

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



More information about the debian-med-commit mailing list