[med-svn] r5361 - trunk/packages/ensembl/ensembl/57/debian
Steffen Möller
moeller at alioth.debian.org
Sun Oct 17 00:39:07 UTC 2010
Author: moeller
Date: 2010-10-17 00:39:04 +0000 (Sun, 17 Oct 2010)
New Revision: 5361
Modified:
trunk/packages/ensembl/ensembl/57/debian/adjust_shebang_line.sh
trunk/packages/ensembl/ensembl/57/debian/rules
Log:
Adjusting file permissions
Modified: trunk/packages/ensembl/ensembl/57/debian/adjust_shebang_line.sh
===================================================================
--- trunk/packages/ensembl/ensembl/57/debian/adjust_shebang_line.sh 2010-10-17 00:23:58 UTC (rev 5360)
+++ trunk/packages/ensembl/ensembl/57/debian/adjust_shebang_line.sh 2010-10-17 00:39:04 UTC (rev 5361)
@@ -3,6 +3,7 @@
for i in "$@"
do
if head -n 1 "$i" | egrep -q '^#!(/usr/bin/perl|/bin/bash)'; then
+ chmod 755 "$i"
echo "OK: '$i'"
continue;
fi
@@ -17,8 +18,10 @@
echo "Insert: '$i'"
if echo "$i" | grep ".sh" || egrep "use\s\s*strict\s*;" $i; then
sed -i '1i#!/usr/bin/perl\n' $i
+ chmod 755 "$i"
elif (echo "$i" | grep ".sh" ) || egrep "use\s\s*strict\s*;" $i; then
sed -i '1i#!/bin/bash\n' $i
+ chmod 755 "$i"
else
echo " * '$i'"
fi
Modified: trunk/packages/ensembl/ensembl/57/debian/rules
===================================================================
--- trunk/packages/ensembl/ensembl/57/debian/rules 2010-10-17 00:23:58 UTC (rev 5360)
+++ trunk/packages/ensembl/ensembl/57/debian/rules 2010-10-17 00:39:04 UTC (rev 5361)
@@ -25,7 +25,7 @@
# well, those bits should already have been fixed in the source tree, but, who knows...
find debian -name CVS -a -type d | xargs -r rm -r
find debian -name "*.pm" -o -name "*.png" -o -name "*.gif" -o -name README \
- -o -name "*.sql" -o -name "*.pdf" -o -name "*.html" | xargs -r chmod 644
+ -o -name "*.sql" -o -name "*.pdf" -o -name "*.html" | xargs -r chmod 644
find debian -name "*.pl" -o -name "*.t" | xargs -r chmod 755
# First round of updates
More information about the debian-med-commit
mailing list