Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Aug 2018 08:41:24 +0800 (+08)
From:      Gerald Pfeifer <gerald@pfeifer.com>
To:        Adam Weinberger <adamw@adamw.org>, Bartek Rutkowski <robak@FreeBSD.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org,  svn-ports-head@freebsd.org
Subject:   Re: svn commit: r477561 - head/Tools/scripts
Message-ID:  <alpine.LSU.2.21.1808200839360.3241@anthias.pfeifer.com>
In-Reply-To: <CAP7rwciqrNT-aMKf9oZttZB3G1vKwU%2BpCrY3N8ARryNX--Q8oQ@mail.gmail.com>
References:  <201808190917.w7J9Hv1s093234@repo.freebsd.org> <CAP7rwciqrNT-aMKf9oZttZB3G1vKwU%2BpCrY3N8ARryNX--Q8oQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 19 Aug 2018, Adam Weinberger wrote:
>> +            # See what the port now has for PORTREVISION.
>> +            cd "$1"
>> +            post=$(make -V PORTREVISION)
>> +            cd "$startdir"
> You can just post=$(make -C "$1" -V PORTREVISION), instead of saving
> pwd and cd'ing multiple times.

Ah, of course!  Thank you for the hint, I just applied this change
as follow-up to my commit yesterday (considering a direct follow-up/
improvement/fix).

Gerald



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.LSU.2.21.1808200839360.3241>