Author: mordante
Date: Mon Jun 23 17:10:54 2008
New Revision: 27436
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27436&view=rev
Log:
Add Exuberant Ctags suppor to the TAGS build. Esr you might want to review it.
Modified:
trunk/SConstruct
Modified: trunk/SConstruct
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=27436&r1=27435&r2=27436&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Mon Jun 23 17:10:54 2008
@@ -313,7 +313,8 @@
#
# Make a tags file for Emacs
-env.Command("TAGS", sources, 'etags -l c++ $SOURCES.srcpath')
+# Exuberant Ctags doesn't understand the -l c++ flag so if the etags fails try
the ctags version
+env.Command("TAGS", sources, 'etags -l c++ $SOURCES.srcpath || (ctags
--tag-relative=yes -f src/tags $SOURCES.srcpath)')
env.Clean(all, 'TAGS')
#
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits