version 1.17, 2010/04/23 22:14:22 |
version 1.19, 2013/04/20 22:34:57 |
|
|
local _role |
local _role |
while read _role; do |
while read _role; do |
if [ -n "${_role}" ]; then |
if [ -n "${_role}" ]; then |
_line=${_line%%#*} # strip comments |
_role=${_role%%#*} # strip comments |
test -z "$_line" && continue |
test -z "$_role" && continue |
_roles[${#_roles[@]}]="$_role" |
_roles[${#_roles[@]}]="$_role" |
fi |
fi |
done < roles |
done < roles |
|
|
|
|
|
|
append_pkg_path() { |
append_pkg_path() { |
[ ! -e pkg_path ] && return |
[ -e pkg_path -o -d packages ] || return |
|
|
echo ' ==> Setting PKG_PATH' |
echo ' ==> Setting PKG_PATH' |
|
[ -d packages ] && PKG_PATH="${PKG_PATH}:${PWD}/packages" |
|
[ -e pkg_path ] || return; |
local _line |
local _line |
while read _line; do |
while read _line; do |
_line=${_line%%#*} # strip comments |
_line=${_line%%#*} # strip comments |
test -z "$_line" && continue |
[ -z "$_line" ] && continue |
if [ -z "${PKG_PATH}" ]; then |
PKG_PATH="${PKG_PATH}:${_line}" |
PKG_PATH="$_line" |
|
else |
|
PKG_PATH="${PKG_PATH}:${_line}" |
|
fi |
|
done < pkg_path |
done < pkg_path |
|
|
PKG_PATH=`eval echo $PKG_PATH` |
PKG_PATH=`eval echo $PKG_PATH | sed -e 's/^:*//'` |
} |
} |
|
|
run_command_lists() { |
run_command_lists() { |