[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] gnumed start script
From: |
Karsten Hilbert |
Subject: |
Re: [Gnumed-devel] gnumed start script |
Date: |
Sun, 31 Aug 2008 16:40:36 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Should be fixed in CVS.
On Sat, Aug 30, 2008 at 09:30:21AM +0200, Hilbert, Sebastian wrote:
> User-Agent: KMail/1.9.9
> Subject: [Gnumed-devel] gnumed start script
>
> 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 mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/gnumed-devel
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346