Re: [PATCH] check for ctags utility in make_ctags

Поиск
Список
Период
Сортировка
От Nikolay Shaplov
Тема Re: [PATCH] check for ctags utility in make_ctags
Дата
Msg-id 19586606.0NixFSG4dh@x200m
обсуждение исходный текст
Ответ на Re: [PATCH] check for ctags utility in make_ctags  (Andrew Dunstan <andrew.dunstan@2ndquadrant.com>)
Ответы Re: [PATCH] check for ctags utility in make_ctags  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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.


Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Problem with parallel_workers option (Was Re: [PATCH] get rid ofStdRdOptions, use individual binary reloptions representation for eachrelation kind instead)
Следующее
От: Jesper Pedersen
Дата:
Сообщение: Re: partitioned tables referenced by FKs