mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-26 09:58:20 +01:00
include all .xml and .java files, but only if they're not named in a .gitignore file in the same directory
This commit is contained in:
parent
c1e22dd3cf
commit
d122b7d2ff
1 changed files with 12 additions and 1 deletions
|
@ -4,4 +4,15 @@ tags:
|
|||
-o -name '*.h' -print \
|
||||
-o -name '*.cpp' -print \
|
||||
)
|
||||
find android/XWords4/src/ -name '*.java' | xargs etags -a
|
||||
FILES=""; \
|
||||
for f in $$(find android/ -name '*.java' -o -name '*.xml'); do \
|
||||
DIR=$$(dirname $$f); \
|
||||
if [ -e $$DIR/.gitignore ]; then \
|
||||
if grep -q $$(basename $$f) $$DIR/.gitignore; then \
|
||||
echo "skipping $$f"; \
|
||||
f=""; \
|
||||
fi; \
|
||||
fi; \
|
||||
[ "$$f" != "" ] && FILES="$$FILES $$f"; \
|
||||
done; \
|
||||
etags -a $$FILES
|
||||
|
|
Loading…
Reference in a new issue