| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| . gettext.sh |
| export TEXTDOMAIN=centos-art.sh |
| export TEXTDOMAINDIR=/home/centos/artwork/trunk/Scripts/Bash/Locale |
| |
| |
| FILES=$(ls /home/centos/artwork/trunk/Scripts/Bash/Functions/{cli,cli_*}.sh) |
| MISSINGFILES='' |
| for FILE in $FILES;do |
| if [[ -x $FILE ]];then |
| . $FILE |
| FUNCTION=$(grep '^function ' $FILE | cut -d' ' -f2) |
| export -f $FUNCTION |
| else |
| MISSINGFILES="$FILE $MISSINGFILES" |
| fi |
| done |
| |
| if [[ $MISSINGFILES != '' ]];then |
| for FILE in $MISSINGFILES;do |
| echo `gettext "The $FILE needs to have execution rights."` |
| done |
| exit |
| fi |
| |
| |
| |
| |
| unset FILE |
| unset FILES |
| unset MISSINGFILES |
| unset FUNCTION |