[scripts][tagit] extend tagit script to only tag files for a particular project

This commit is contained in:
Travis Geiselbrecht
2015-12-02 18:34:01 -08:00
parent 720dc32335
commit b7e68b5dbd

View File

@@ -1,7 +1,17 @@
#!/bin/sh #!/bin/sh
FILES=`find . -type f -regex ".*\.[chS]\|.*\.cpp"` if [ "$#" -lt 1 ]; then
FILES=`find . -type f -regex ".*\.[chS]\|.*\.cpp"`
echo running ctags echo running ctags
exuberant-ctags $FILES rm -f tags
echo $FILES | xargs ctags -a
else
if [ ! -d build-$1 ]; then
echo "directory build-$1 does not exist"
exit 1
fi
echo running ctags on project $1
rm -f tags
ctags -L build-$1/srcfiles.txt
ctags -a --recurse -L build-$1/include_paths.txt 2> /dev/null
fi