diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-12-26 21:04:02 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-02-21 14:10:39 +0100 |
commit | 50c7cacdf36738653391664844a37cc78c04e605 (patch) | |
tree | 1e38a11e2ca2c0b1731197b4ce20b02ac648f349 /bin | |
parent | 461df074716bc0ca6da6beb244cb305eeaae6004 (diff) | |
download | ptxdist-50c7cacdf36738653391664844a37cc78c04e605.tar.gz ptxdist-50c7cacdf36738653391664844a37cc78c04e605.tar.xz |
[ptxdist] convert readlink -e -> readlink -f
The "-e" option is only supported by recent new GNU readlink. "-f" works
with old versions and on BSD systems, too.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ptxdist | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ptxdist b/bin/ptxdist index 165028f01..57c848702 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -42,7 +42,7 @@ menu_select() { # le menu # menu() { - local ptxconfig="$(readlink -e "${PTXDIST_PTXCONFIG}")" + local ptxconfig="$(readlink -f "${PTXDIST_PTXCONFIG}")" ptxconfig="${ptxconfig#${PTXDIST_WORKSPACE}/}" local -a menu @@ -67,7 +67,7 @@ menu() { local platform="$(ptxd_get_ptxconf PTXCONF_PLATFORM)" if [ -z "${platform}" -a -e "${PTXDIST_PLATFORMCONFIG}" ]; then - platform="$(readlink -e "${PTXDIST_PLATFORMCONFIG}")" + platform="$(readlink -f "${PTXDIST_PLATFORMCONFIG}")" platform="${platform#${PTXDIST_WORKSPACE}/}" fi @@ -925,7 +925,7 @@ clean() { "${PTXDIST_PLATFORMCONFIG}" \ "${PTXDIST_COLLECTIONCONFIG}" \ ; do - local cfg="$(readlink -e "${cfg}")" + local cfg="$(readlink -f "${cfg}")" if [ ${?} -ne 0 -a -e "${cfg}.old" ]; then rm -f -- "${cfg}.old" fi @@ -1399,7 +1399,7 @@ do_select() local type="${1}" local file="${2}" local dest_ptr="PTXDIST_$(echo "${type}" | tr 'a-z' 'A-Z')_DEFAULT" - local dest_file="$(readlink -e "${!dest_ptr}")" + local dest_file="$(readlink -f "${!dest_ptr}")" local magic="PTXCONF__${type}_MAGIC__=y" check_nonstandard "${type}" || return |