control verbose mode in Portfile?
Christopher Jones
jonesc at hep.phy.cam.ac.uk
Thu May 21 15:05:40 UTC 2020
> On 21 May 2020, at 9:31 am, René J.V. Bertin <rjvbertin at gmail.com> wrote:
>
> Hi,
>
> Out of curiosity: is it possible to control verbose mode in a Portfile, like with `set +x` / `set -x` in shell scripts?
>
> I'd be interested to use that in the post-activate block of a number of my ports, as an easy way to give a little more feedback to the user.
verbose mode printout is only visible if the user activates it, i.e. 'port -v’.
If you want pass a message on to the user, you should not use verbose output to do that. Instead just use a regular ‘ui_msg'
Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1930 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20200521/03055127/attachment.bin>
More information about the macports-dev
mailing list