Skip to content

Commit

Permalink
Fix update tags script
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Bock <nicolasbock@gmail.com>
  • Loading branch information
nicolasbock committed Aug 16, 2019
1 parent d258ff5 commit 923f1f5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions update_tags.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#!/bin/bash

basedir=$(dirname $0)
files=$(git ls-tree --full-tree -r HEAD \
| grep '.\(c\|h\|F90\)$' \
| awk '{print $4}')
readarray -t files < <(git ls-files '*.c' '*.h' '*.F90')
pushd "${basedir}" || exit
ctags --recurse --C-kinds=+lxzLp --Fortran-kinds=+LP ${files}
etags ${files}
ctags "${files[@]}"
etags "${files[@]}"
popd || exit

0 comments on commit 923f1f5

Please sign in to comment.