Re: [PATCH] check for ctags utility in make_ctags - Mailing list pgsql-hackers

From Nikolay Shaplov
Subject Re: [PATCH] check for ctags utility in make_ctags
Date
Msg-id 19586606.0NixFSG4dh@x200m
Whole thread Raw
In response to Re: [PATCH] check for ctags utility in make_ctags  (Andrew Dunstan <andrew.dunstan@2ndquadrant.com>)
Responses Re: [PATCH] check for ctags utility in make_ctags  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
В письме от воскресенье, 6 января 2019 г. 17:50:36 MSK пользователь Andrew
Dunstan написал:

> > The correct way to code this is to depend on the exit code,
> > not the text output:
> >
> > if command -v etags >/dev/null
> > then
> >   : ok
> > else
> >   echo etags not found
> >   exit 1
> > fi
>
> more succinctly,
>     command -v etags >/dev/null || { echo etags not found; exit 1;}

If it is good enough for you, then is is good for me for sure...
Imported it to the patch.


Attachment

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Problem with parallel_workers option (Was Re: [PATCH] get rid ofStdRdOptions, use individual binary reloptions representation for eachrelation kind instead)
Next
From: Jesper Pedersen
Date:
Subject: Re: partitioned tables referenced by FKs