The following commit has been merged in the master branch:
commit 2da90d06c0be57fbe4ef051c7c035447b09ee127
Author: Andreas Tille <[email protected]>
Date:   Mon May 7 09:01:07 2012 +0200

    Fix bashism in shell script. UNTESTED - PLEASE TEST

diff --git a/debian/changelog b/debian/changelog
index 4cad410..ee78d78 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 tophat (2.0.0-2) UNRELEASED; urgency=low
 
   * debian/upstream: BibTeX conform author syntax
+  * debian/patces/bashism_in_shell_script.patch: Fix bashism in shell script
+    Closes: #671813
 
  -- Andreas Tille <[email protected]>  Sun, 06 May 2012 13:26:38 +0200
 
diff --git a/debian/patches/bashism_in_shell_script.patch 
b/debian/patches/bashism_in_shell_script.patch
new file mode 100644
index 0000000..2e79ad6
--- /dev/null
+++ b/debian/patches/bashism_in_shell_script.patch
@@ -0,0 +1,18 @@
+Author: Andreas Tille <[email protected]>
+Bug-Closed: http://bugs.debian.org/671813
+Descriptions: Remove bashism from shell script
+
+--- tophat.orig/src/tophat2.in
++++ tophat/src/tophat2.in
+@@ -1,9 +1,9 @@
+ #!/bin/sh
+ prefix="__PREFIX__"
+ pbin=""
+-if [[ -z $prefix ]]; then
++if [ "$prefix" = "" ]; then
+    fl=$(readlink $0)
+-   if [[ -z $fl ]]; then
++   if [ "$fl" = "" ]; then
+      pbin=$(dirname $0)
+    else
+      pbin=$(dirname $fl)
diff --git a/debian/patches/series b/debian/patches/series
index 9f30ee6..18fe133 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 fix_includes_path.patch
+bashism_in_shell_script.patch

-- 
A spliced read mapper for RNA-Seq

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

Reply via email to