|
@ -221,13 +221,13 @@ fi |
|
|
# Create the directories |
|
|
# Create the directories |
|
|
if [ "$_download_only" = false ]; then |
|
|
if [ "$_download_only" = false ]; then |
|
|
# This variable can be set by a wrapper script in need to nuke the install dir. |
|
|
# This variable can be set by a wrapper script in need to nuke the install dir. |
|
|
if [ "$_nuke_dir_install" = true ]; then |
|
|
if [ "$_nuke_dir_install" = true -a ! -z "$dir_install" ]; then |
|
|
rm -rf "$dir_install" |
|
|
rm -rf "$dir_install" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
rm -rf "$dir_build" |
|
|
rm -rf "$dir_build" |
|
|
mkdir -p "$dir_build" |
|
|
mkdir -p "$dir_build" |
|
|
mkdir -p "$dir_install" |
|
|
[ ! -z "$dir_install" ] && mkdir -p "$dir_install" |
|
|
cd "$dir_build" |
|
|
cd "$dir_build" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|