Author: loonycyborg
Date: Sat May 31 00:10:39 2008
New Revision: 26934
URL: http://svn.gna.org/viewcvs/wesnoth?rev=26934&view=rev
Log:
Simplified TAGS target implementation.
Modified:
trunk/SConstruct
trunk/src/SConscript
Modified: trunk/SConstruct
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=26934&r1=26933&r2=26934&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Sat May 31 00:10:39 2008
@@ -318,7 +318,7 @@
#
# Make a tags file for Emacs
-env.Command("TAGS", sources, 'etags -l c++ $SOURCES')
+env.Command("TAGS", sources, 'etags -l c++ $SOURCES.srcpath')
env.Clean(all, 'TAGS')
#
Modified: trunk/src/SConscript
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/SConscript?rev=26934&r1=26933&r2=26934&view=diff
==============================================================================
--- trunk/src/SConscript (original)
+++ trunk/src/SConscript Sat May 31 00:10:39 2008
@@ -290,8 +290,7 @@
sources = []
if "TAGS" in COMMAND_LINE_TARGETS:
EnsureSConsVersion(0, 98)
- patterns = [ os.path.join(dir, file) for dir in ["", "*", "*/*"] for file
in ["*.cpp", "*.hpp"] ]
- sources = [ Glob(pattern, source=True, ondisk=False) for pattern in
patterns ]
+ sources = FindSourceFiles()
Export("sources")
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits