[PATCH modular v2] release.sh: Find modular directory through symlinks
Dan Nicholson
dbn.lists at gmail.com
Sun Mar 13 18:43:50 PDT 2011
On Sun, Mar 13, 2011 at 11:23 AM, Alan Coopersmith
<alan.coopersmith at oracle.com> wrote:
> On 03/13/11 11:16 AM, Dan Nicholson wrote:
>> 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...
>
> Well, as one of the major users of this script, I appreciate readlink over
> realpath, since I only have readlink on Solaris as well.
Yeah, readlink is almost certainly available on anyone's machine doing
Xorg releases.
Applied 2d2a543..744e99d.
--
Dan
More information about the xorg-devel
mailing list