download_and_compile.sh: create openscenegraph dir only when OSG build is enabled

Dont create the 'openscenegraph' directory when the OSG build is
not selected (request from user ctesc356 of the French forum).
This commit is contained in:
Florent Rougon
2019-03-23 14:34:51 +01:00
parent caaad41e26
commit 1f27f8e39a
+2 -2
View File
@@ -790,13 +790,13 @@ fi
OSG_INSTALL_DIR=openscenegraph OSG_INSTALL_DIR=openscenegraph
INSTALL_DIR_OSG=$INSTALL_DIR/$OSG_INSTALL_DIR INSTALL_DIR_OSG=$INSTALL_DIR/$OSG_INSTALL_DIR
cd "$CBD" cd "$CBD"
mkdir -p "openscenegraph"
if _elementIn "OSG" "${WHATTOBUILD[@]}"; then if _elementIn "OSG" "${WHATTOBUILD[@]}"; then
_printLog "****************************************" _printLog "****************************************"
_printLog "**************** OSG *******************" _printLog "**************** OSG *******************"
_printLog "****************************************" _printLog "****************************************"
cd "$CBD"/openscenegraph mkdir -p "openscenegraph"
cd "openscenegraph"
_gitDownload OSG _gitDownload OSG
_gitUpdate OpenSceneGraph-3.4 _gitUpdate OpenSceneGraph-3.4