# Misc PUB_NAME="pub" PUB_PUBLIC_HTML="/home/$PUB_NAME/public_html" FILES_DIRECTORY="userfiles" REPOSITORY_URL="http://svn.fr-wd.com" USER_NAME=$(whoami) BASE_PATH=`pwd | xargs dirname` WWW_PATH="$BASE_PATH/www" PROJECT_PATH=`expr match "$BASE_PATH" '^\(\/[^\/]\+\/[^\/]\+\/[^\/]\+\/[^\/]\+\)'` PROJECT_NAME=`echo $PROJECT_PATH | xargs basename` PUB_BASE_PATH=$(pwd | xargs dirname | sed "s/\/home\/$USER_NAME\//\/home\/pub\//") BRANCHE_PATH=$(echo $BASE_PATH | sed "s/\/home\/$USER_NAME\/public_html\/$PROJECT_NAME\///") # Qs classes Directory QS_BASE_PATH="$BASE_PATH/site/Qs" QS_SYS_DIR="Sys" ######################################################################################################################## # FUNCTIONS # ######################################################################################################################## # cecho colors CL_DEFAULT='\E[0m' CL_BLACK='\E[30m' CL_RED='\E[31m' CL_GREEN='\E[32m' CL_YELLOW='\E[33m' CL_BLUE='\E[34m' CL_WHILE='\E[37m' cecho () { local message=${1:-''} local color=${2:-$CL_WHILE} echo -ne "$color" echo -ne "$message" echo -ne $CL_DEFAULT return }