From 9eda6b307ba6c5426c40c4cad95e07e43858230e Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 4 Dec 2014 15:33:24 +0100 Subject: 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 --- bin/run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/run b/bin/run index 4fb369f149c4..a3acad6b4ae7 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 -- cgit