[med-svn] [centrifuge] 03/03: Symlinks will not wirk since Perl scripts are using the path where the script was found - adapt the wrapper instead.
Andreas Tille
tille at debian.org
Mon Dec 18 15:38:29 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository centrifuge.
commit ee23f6482d35fe7fb3422b5e698f4a49a75be50a
Author: Andreas Tille <tille at debian.org>
Date: Mon Dec 18 16:34:07 2017 +0100
Symlinks will not wirk since Perl scripts are using the path where the script was found - adapt the wrapper instead.
---
debian/bin/centrifuge | 12 ++++++++++--
debian/bin/centrifuge-compress | 1 +
debian/bin/centrifuge-download | 1 +
debian/bin/centrifuge-sort-nt | 1 +
debian/links | 3 ---
5 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/debian/bin/centrifuge b/debian/bin/centrifuge
index 02d3b9f..19bbad4 100755
--- a/debian/bin/centrifuge
+++ b/debian/bin/centrifuge
@@ -4,5 +4,13 @@ exe=`basename $0`
export PATH=/usr/lib/centrifuge:$PATH
-/usr/lib/centrifuge/$exe $@
-
+if [ -x /usr/lib/centrifuge/$exe ] ; then
+ /usr/lib/centrifuge/$exe $@
+else
+ if [ -x /usr/lib/centrifuge/${exe}.pl ] ; then
+ /usr/lib/centrifuge/${exe}.pl $@
+ else
+ echo "No binary $exe in dir /usr/lib/centrifuge/"
+ exit 1
+ fi
+fi
diff --git a/debian/bin/centrifuge-compress b/debian/bin/centrifuge-compress
new file mode 120000
index 0000000..397b56e
--- /dev/null
+++ b/debian/bin/centrifuge-compress
@@ -0,0 +1 @@
+centrifuge
\ No newline at end of file
diff --git a/debian/bin/centrifuge-download b/debian/bin/centrifuge-download
new file mode 120000
index 0000000..397b56e
--- /dev/null
+++ b/debian/bin/centrifuge-download
@@ -0,0 +1 @@
+centrifuge
\ No newline at end of file
diff --git a/debian/bin/centrifuge-sort-nt b/debian/bin/centrifuge-sort-nt
new file mode 120000
index 0000000..397b56e
--- /dev/null
+++ b/debian/bin/centrifuge-sort-nt
@@ -0,0 +1 @@
+centrifuge
\ No newline at end of file
diff --git a/debian/links b/debian/links
deleted file mode 100644
index c21e7ba..0000000
--- a/debian/links
+++ /dev/null
@@ -1,3 +0,0 @@
-usr/lib/centrifuge/centrifuge-compress.pl usr/bin/centrifuge-compress
-usr/lib/centrifuge/centrifuge-sort-nt.pl usr/bin/centrifuge-sort-nt
-usr/lib/centrifuge/centrifuge-download usr/bin/centrifuge-download
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/centrifuge.git
More information about the debian-med-commit
mailing list