make_etags: avoid recursive symbolic creation.

From: Ashwin Agrawal <aagrawal(at)pivotal(dot)io>
To: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: make_etags: avoid recursive symbolic creation.
Date: 2018-01-18 23:58:31
Message-ID: CALfoeisPfcPYiXMakeagNSwroqS8i3jvW_0MK-JQK9EqHFZqOg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

src/tools/make_etags creates link to TAGS file from each and every
directory in source tree. It works fine without all those links in each and
every directory in source code so remove the extra work and annoyance.

diff --git a/src/tools/make_etags b/src/tools/make_etags
index 3ce96bc3ca..2bfd1314fe 100755
--- a/src/tools/make_etags
+++ b/src/tools/make_etags
@@ -6,8 +6,3 @@ rm -f ./TAGS

find `pwd`/ -type f -name '*.[chyl]' -print |
xargs etags --append -o TAGS
-
-find . \( -name CVS -prune \) -o \( -name .git -prune \) -o -type d -print
|
-while read DIR
-do [ "$DIR" != "." ] && ln -f -s `pwd`/TAGS "$DIR"
-done

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Haribabu Kommi 2018-01-19 00:09:46 Re: [HACKERS] Refactor handling of database attributes between pg_dump and pg_dumpall
Previous Message Tom Lane 2018-01-18 23:42:01 Re: [PATCH][PROPOSAL] Refuse setting toast.* reloptions when TOAST table does not exist