gnugo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnugo-devel] patterns can be tagged


From: Paul Pogonyshev
Subject: [gnugo-devel] patterns can be tagged
Date: 30 Oct 2003 03:27:19 +0000

This patch forces `make tags' to tag all the patterns we have.  Not
sure about vi, but it makes tuning with Emacs much easier.  Just `make
tags' and then hit M-. in Emacs to find a pattern by name.  If you
have that name in a buffer (e.g. in shell/eshell buffer running gnugo
with traces on) just move your point onto the name and hit M-. RET.

Btw., can anyone tell if `--long-option=value' is more portable or
otherwise better than `--long-option-name value' ?  I prefer the
latter for it seems less cluttered, but i will use `=' (at least in
files meant for distribution) if there is a good reason.



Index: patterns/Makefile.am
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/Makefile.am,v
retrieving revision 1.23
diff -u -p -r1.23 Makefile.am
--- patterns/Makefile.am        12 Oct 2003 03:07:51 -0000      1.23
+++ patterns/Makefile.am        30 Oct 2003 01:14:45 -0000
@@ -73,6 +73,12 @@ GGBUILTSOURCES = conn.c patterns.c apatt
 DBBUILT = hoshi_keima.db hoshi_other.db komoku.db sansan.db \
          mokuhazushi.db takamoku.db
 
+DB_TO_TAG = aa_attackpats.db attack.db barriers.db conn.db defense.db\
+           endgame.db eyes.db fuseki.db fuseki9.db fuseki13.db fuseki19.db\
+           handicap.db influence.db oracle.db owl_attackpats.db\
+           owl_defendpats.db owl_vital_apats.db patterns.db patterns2.db\
+           read_attack.db read_defend.db $(DBBUILT)
+
 # Remove these files here... they are created locally
 DISTCLEANFILES = $(GGBUILTSOURCES) $(DBBUILT) *~
 
@@ -172,3 +178,7 @@ read_attack.c : $(srcdir)/read_attack.db
 read_defend.c : $(srcdir)/read_defend.db mkpat$(EXEEXT)
        ./mkpat -b read_defend < $(srcdir)/read_defend.db >read_defend.c
 
+
+ETAGS_ARGS = --language none --regex '/^Pattern[ \t]+[a-zA-Z0-9]+/' 
$(DB_TO_TAG)\
+            --language auto --no-regex
+TAGS_DEPENDENCIES = $(DB_TO_TAG)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]