Initial commit
This commit is contained in:
commit
fa9f56a5ed
7 changed files with 102 additions and 0 deletions
20
post-commit.d/ctags.sh
Executable file
20
post-commit.d/ctags.sh
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
TAG_DIR="$HOME/.tags"
|
||||
PROJECT_TAG_FILE="omx-gui.tags"
|
||||
|
||||
if [ "$CREATE_TAGS" != true ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ ! -x /usr/bin/ctags ]; then
|
||||
echo "ctags binary is not executable or not present!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d $HOME/.tags ]; then
|
||||
echo "tags directory not created, creating it for you.."
|
||||
/bin/mkdir $HOME/.tags
|
||||
fi
|
||||
|
||||
/usr/bin/ctags -f "$TAG_DIR/$PROJECT_TAG_FILE" -R --languages=Python,Javascript > /dev/null 2>&1
|
||||
Reference in a new issue