Initial commit

This commit is contained in:
Sonny 2019-05-19 14:18:51 +00:00
commit fa9f56a5ed
7 changed files with 102 additions and 0 deletions

20
post-commit.d/ctags.sh Executable file
View 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