Fix for obj-loader
[platform/core/uifw/dali-toolkit.git] / automated-tests / scripts / autocompletion.sh
1 #!/bin/bash
2 if [ -z "$TC_PROJECT_DIR" ]; then
3     echo "CoreAPI project directory can't be found. `basename $0` exitting..."
4     exit 1
5 fi
6
7 _tcbuild () {
8     local cur
9     cur=${COMP_WORDS[$COMP_CWORD]}
10     if [ $COMP_CWORD -eq 1 ]; then
11         COMPREPLY=( $( compgen -W "addmod build install rmmod" -- $cur ) )
12     else #if [ $COMP_CWORD -eq 2 ]; then
13         COMPREPLY=( $( cd $TC_PROJECT_DIR/src; compgen -d -X "common" -- $cur ) )
14     fi
15     return 0
16 }
17
18 complete -F _tcbuild tcbuild