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 1geNAX-0007bI-Hf for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Jan 2019 16:45:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1geNAT-0006JB-Nn for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Jan 2019 16:45:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1geNAT-0006J4-Cp for pgsql-hackers@lists.postgresql.org; Tue, 01 Jan 2019 16:45:25 +0000 Received: from ssl.nataraj.su ([195.54.209.170]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1geNAG-0000zN-Cl for pgsql-hackers@lists.postgresql.org; Tue, 01 Jan 2019 16:45:23 +0000 Received: from x200m.localnet (unknown [91.108.35.130]) by ssl.nataraj.su (Postfix) with ESMTPSA id 0FBF3511E1C7; Tue, 1 Jan 2019 19:44:10 +0300 (MSK) From: Nikolay Shaplov To: pgsql-hackers@lists.postgresql.org Cc: Michael Paquier Subject: Re: [PATCH] check for ctags utility in make_ctags Date: Tue, 01 Jan 2019 19:44:04 +0300 Message-ID: <2372584.plvHIL0NPR@x200m> User-Agent: KMail/5.2.3 (Linux/4.9.0-8-amd64; KDE/5.28.0; x86_64; ; ) In-Reply-To: <20190101022411.GC3243@paquier.xyz> References: <2394207.ccz7JgCJsh@x200m> <3041301.tun4ao7M3a@x200m> <20190101022411.GC3243@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart4893437.sJxeqlfcsW" 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. --nextPart4893437.sJxeqlfcsW Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="UTF-8" 0JIg0L/QuNGB0YzQvNC1INC+0YIg0LLRgtC+0YDQvdC40LosIDEg0Y/QvdCy0LDRgNGPIDIwMTkg 0LMuIDExOjI0OjExIE1TSyDQv9C+0LvRjNC30L7QstCw0YLQtdC70YwgTWljaGFlbCAKUGFxdWll ciDQvdCw0L/QuNGB0LDQuzoKCj4gTm90IHN1cmUgaWYgdGhhdCdzIHNvbWV0aGluZyB3b3JzZSBi b3RoZXJpbmcgYWJvdXQsIGJ1dCB5b3UgY291bGQgZG8KPiB0aGUgc2FtZSBpbiBzcmMvdG9vbHMv bWFrZV9ldGFncy4KR29vZCBpZGVhLiBEb25lLgoKKEkgZGlkIG5vdCBkbyBpdCBpbiB0aGUgZmly c3QgcGxhY2UgYmVjYXVzZSBJIGRvIG5vdCB1c2UgZXRhZ3MgYW5kIGNhbid0IApwcm9wZXJseSBj aGVjayBpdCwgYnV0IHJlYWxseSBpZiBzb21lIGZpbGVzIGFyZSBjcmVhdGVkLCB0aGVuIGV2ZXJ5 dGhpbmcgc2hvdWxkIApiZSB3b3JraW5nIHdlbGwuIFRoaXMgaXMgZ29vZCBlbm91Z2ggY2hlY2sg Oi0pICkK --nextPart4893437.sJxeqlfcsW Content-Disposition: attachment; filename="check-for-ctags-in-make_ctags_v3.diff" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="UTF-8"; name="check-for-ctags-in-make_ctags_v3.diff" diff --git a/.gitignore b/.gitignore index 794e35b..ca14134 100644 diff --git a/src/tools/make_ctags b/src/tools/make_ctags index 1609c07..052d1e4 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 diff --git a/src/tools/make_etags b/src/tools/make_etags index 3ce96bc..68738e4 100755 --- a/src/tools/make_etags +++ b/src/tools/make_etags @@ -2,6 +2,13 @@ # src/tools/make_etags +if [ ! $(command -v etags) ] +then + echo "'etags' utility is not found" 1>&2 + echo "Please install 'etags' to run make_etags" 1>&2 + exit 1 +fi + rm -f ./TAGS find `pwd`/ -type f -name '*.[chyl]' -print | --nextPart4893437.sJxeqlfcsW--