Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ge0Lt-0004pt-NG for pgsql-hackers@arkaria.postgresql.org; Mon, 31 Dec 2018 16:23:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ge0Ls-00011V-Hy for pgsql-hackers@arkaria.postgresql.org; Mon, 31 Dec 2018 16:23:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ge0Ia-0001DQ-D9 for pgsql-hackers@lists.postgresql.org; Mon, 31 Dec 2018 16:20:16 +0000 Received: from ssl.nataraj.su ([195.54.209.170]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ge0IY-0004Du-BT for pgsql-hackers@lists.postgresql.org; Mon, 31 Dec 2018 16:20:15 +0000 Received: from x200m.localnet (unknown [91.108.35.130]) by ssl.nataraj.su (Postfix) with ESMTPSA id 8A233511E031 for ; Mon, 31 Dec 2018 19:19:42 +0300 (MSK) From: Nikolay Shaplov To: pgsql-hackers@lists.postgresql.org Subject: Re: [PATCH] check for ctags utility in make_ctags Date: Mon, 31 Dec 2018 19:19:39 +0300 Message-ID: <3041301.tun4ao7M3a@x200m> User-Agent: KMail/5.2.3 (Linux/4.9.0-8-amd64; KDE/5.28.0; x86_64; ; ) In-Reply-To: <2394207.ccz7JgCJsh@x200m> References: <2394207.ccz7JgCJsh@x200m> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart2517387.83mB9fHskm" Content-Transfer-Encoding: 7Bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --nextPart2517387.83mB9fHskm Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="UTF-8" 0JIg0L/QuNGB0YzQvNC1INC+0YIg0L/QvtC90LXQtNC10LvRjNC90LjQuiwgMzEg0LTQtdC60LDQ sdGA0Y8gMjAxOCDQsy4gMTk6MDQ6MDggTVNLINC/0L7Qu9GM0LfQvtCy0LDRgtC10LvRjCBOaWtv bGF5IApTaGFwbG92INC90LDQv9C40YHQsNC7OgoKPiBJJ2QgbGlrZSB0byBwcm9wb3NlIGEgc21h bGwgcGF0Y2ggZm9yIG1ha2VfY3RhZ3Mgc2NyaXB0LiBJdCBjaGVja3MgaWYgY3RhZ3MKPiB1dGls aXR5IGlzIGludGFsbGVkIG9yIG5vdC4gSWYgbm90IGl0IHJlcG9ydHMgYW4gZXJyb3IgYW5kIGFk dmlzZXMgdG8KPiBpbnN0YWxsIGN0YWdzLgpPdXBzLiBJJ3ZlIG1pc3BsYWNlZCAnJicgY2hhcmFj dGVyIDotKQoKSGVyZSBpcyB0aGUgcmlnaHQgdmVyc2lvbiAgCg== --nextPart2517387.83mB9fHskm Content-Disposition: attachment; filename="check-for-ctags-in-make_ctags_v2.diff" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="UTF-8"; name="check-for-ctags-in-make_ctags_v2.diff" diff --git a/src/tools/make_ctags b/src/tools/make_ctags index 1609c07..edbcd82 100755 --- a/src/tools/make_ctags +++ b/src/tools/make_ctags @@ -2,6 +2,13 @@ # src/tools/make_ctags +if [ ! $(command -v ctags) ] +then + echo "'ctags' utility is not found" 1>&2 + echo "Please install 'ctags' to run make_ctags" 1>&2 + exit 1 +fi + trap "rm -f /tmp/$$" 0 1 2 3 15 rm -f ./tags --nextPart2517387.83mB9fHskm--