summaryrefslogblamecommitdiffstats
path: root/emacs.d/update-etags
blob: 88cc4f4243a59aa7651390da0697c5f21ba20cc6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                                                                                                                                                                               
#!/bin/bash

LANGUAGE=$1
ACCEPTED_EXTENSION="$(echo $2|sed 's/|/ /g')"
BASE_DIR=$3
FILE_EXT=${4##*.}

echo "test1" | logger
 
[[ -z ${FILE_EXT} ]] && exit
 
processing=
for extension in $ACCEPTED_EXTENSION;do
    [[ $extension == $FILE_EXT ]] && processing=true
done

echo "test" | logger
find ${BASE_DIR} ! -wholename './.git/*'  -a ! -wholename './.svn/*' -a ! -name '*.pyc' -a ! -name '*~' -a ! -name '*#' -a ! -name '*.o' -a ! -name '*.ppu' -print0 | xargs -0 etags -o ${BASE_DIR}/TAGS 2>/dev/null >/dev/null