$PREFIX_PATH can be specified as a relative path

This commit is contained in:
Sam Stephenson 2011-09-06 13:30:42 -05:00
parent 6a5ee00bd2
commit 20f7b5c0e9

View file

@ -184,11 +184,13 @@ elif [ ! -e "$DEFINITION_PATH" ]; then
fi
fi
PREFIX_PATH="$2"
if [ -z "$PREFIX_PATH" ]; then
if [ -z "$2" ]; then
usage
fi
mkdir -p "$2"
PREFIX_PATH="$(abs_dirname "$2")"
SEED="$(date "+%Y%m%d%H%M%S").$$"
LOG_PATH="/tmp/ruby-build.${SEED}.log"
TEMP_PATH="/tmp/ruby-build.${SEED}"