( set -P && cd "$1" && pwd )
}
+## Usage: logging <message>
function logging
{
if test "$_VS_LOGFILE"; then
fi
}
+## Usage: warning <message>
function warning
{
if test "$_VS_ERRFILE"; then
fi
}
+## Usage: panic <message>
function panic
{
if test "$_VS_ERRFILE"; then
exit 1
}
+## Usage: execute <message>
function execute
{
test -z "${DEBUG_EXEC:-}" || echo "$@"
return 0
}
-_UV_LOCKS=''
+_VS_LOCKS=''
## Usage: lock <lockfile> [<timeout>]
function lock
{
$_LOCKFILE "$1" $tmp $2 &
cat <$tmp >/dev/null
- _UV_LOCKS="$! $_UV_LOCKS"
+ _VS_LOCKS="$! $_VS_LOCKS"
}
## Usage: unlock [<num>]
local num=$1
local i
- set -- $_UV_LOCKS
+ set -- $_VS_LOCKS
while test "$#" -gt 0; do
kill -HUP "$1" >/dev/null || :
shift
test "$num" != 1 || break
test -z "$num" || let --num
done
- _UV_LOCKS="$@"
+ _VS_LOCKS="$@"
}
function _pkgMountBindDir()