[PATCH modular v2] release.sh: Find modular directory through symlinks

Dan Nicholson dbn.lists at gmail.com
Sun Mar 13 11:16:19 PDT 2011


On Sun, Mar 13, 2011 at 9:28 AM, Dirk Wallenstein <halsmit at t-online.de> wrote:
> To find the auxiliary script that updates a moduleset, consider the case
> where the main script is accessed through a symlink, and resolve that
> first.
>
> Signed-off-by: Dirk Wallenstein <halsmit at t-online.de>
> ---
>
> v2: Use 'readlink -f' instead of 'realpath'
>
> On Sun, Mar 13, 2011 at 08:52:02AM -0700, Dan Nicholson wrote:
>> Hmm, I don't have realpath on fedora and yum doesn't know of any
>> realpath packages. Might be safer to use "readlink -f" since readlink
>> comes from coreutils, which is definitely installed on every linux
>> host if not every unix host.
> I don't even know why I have realpath.  I just thought for a sec that
> that is some sort of ingenious command that I was accidentally missing
> all the time.

I looked a little more and it appears to just be a wrapper around
realpath(3) developed on Debian. And it looks like Fedora was the only
one of the major distros not to have it. Anyway...

Reviewed-by: Dan Nicholson <dbn.lists at gmail.com>


More information about the xorg-devel mailing list