[Libreoffice-commits] core.git: bin/run
Michael Stahl
mstahl at redhat.com
Thu Dec 4 06:40:40 PST 2014
bin/run | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 9eda6b307ba6c5426c40c4cad95e07e43858230e
Author: Michael Stahl <mstahl at redhat.com>
Date: Thu Dec 4 15:33:24 2014 +0100
bin/run: Adapt to run on Debian so-called GNU/Linux systems too
Amazingly Debian does not ship the realpath(1) from coreutils but has a
separate source package for it, and it's not installed by default.
Use readlink -f instead.
Change-Id: I6e97c851e6ab96dac08771145e2ab39dd9c11c22
diff --git a/bin/run b/bin/run
index 4fb369f..a3acad6 100755
--- a/bin/run
+++ b/bin/run
@@ -30,14 +30,14 @@ exec "${exedir}"/$@
else
-dir=$(realpath "$(pwd)")
+dir=$(readlink -f "$(pwd)")
while test ! -d "${dir}/instdir/program" ; do
if test "${dir}" = "/"; then
echo "error: cannot find \"program\" dir from \"$(pwd)\""
exit 1
fi
- dir=$(realpath "${dir}/..")
+ dir=$(readlink -f "${dir}/..")
done
exedir="${dir}"/workdir/LinkTarget/Executable
More information about the Libreoffice-commits
mailing list