[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnumed-devel] gnumed start script
From: |
Sebastian Hilbert |
Subject: |
[Gnumed-devel] gnumed start script |
Date: |
Sat, 30 Aug 2008 09:30:21 +0200 |
User-agent: |
KMail/1.9.9 |
The included start script gnumed (bash) is broken for me on openSUSE.
The fix for me is the following patch
@@ -48,12 +48,12 @@
# if [ -f /etc/version ] ; then
# grep -q PCLinuxOS /etc/version
# if [ $? -eq 0 ] ; then
-GNUMED_SCRIPT_PATH_CANDIDATES=(
-"/var/lib/python-support/python${PYVER}/Gnumed/wxpython"\
- "/usr/lib/python${PYVER}/site-packages/Gnumed/wxpython"\
- "/usr/lib64/python${PYVER}/site-packages/Gnumed/wxpython")
+GNUMED_SCRIPT_PATH_CANDIDATES=\
+"/var/lib/python-support/python${PYVER}/Gnumed/wxpython"\
+"/usr/lib/python${PYVER}/site-packages/Gnumed/wxpython"\
+"/usr/lib64/python${PYVER}/site-packages/Gnumed/wxpython"
-for GNUMED_SCRIPT_PATH in "address@hidden" ; do
+for GNUMED_SCRIPT_PATH in "${GNUMED_SCRIPT_PATH_CANDIDATES}" ; do
if [ -f ${GNUMED_SCRIPT_PATH}/gnumed.py ] ; then
break
fi
Basically it creates an array in bash to store the path and then reads off
that array. I believe you were thinking a long the lines of a list but this
doesn't work for me.
I have included the patch in my packages for rpm based distros.
--
Sebastian Hilbert
Leipzig / Germany
[www.gnumed.de] -> PGP welcome, HTML ->/dev/null
- [Gnumed-devel] gnumed start script,
Sebastian Hilbert <=