Commit 4af760f9 authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

PKG: install setup scripts (mantis-1336

parent 03f2221b
#!/bin/sh
#!/usr/bin/env bash
DIRNAME_0=$(dirname "$0")
cd "$DIRNAME_0"
CURRENT_DIR=$(pwd)
CURRENT_DIR=$(cd -P -- "$(dirname -- "$BASH_SOURCE")" && printf '%s\n' "$(pwd -P)")
unset LD_LIBRARY_PATH
PATH=$PATH:$CURRENT_DIR/bin
PATH=$CURRENT_DIR/bin:$PATH
GDAL_DATA=$CURRENT_DIR/share/gdal
GEOTIFF_CSV=$CURRENT_DIR/share/epsg_csv
export PATH
export GDAL_DATA
export GEOTIFF_CSV
set CURRENT_SCRIPT_DIR=%~dp0
set PATH=%PATH%;%CURRENT_SCRIPT_DIR%\bin
set PATH=%CURRENT_SCRIPT_DIR%\bin;%PATH%
set GDAL_DATA=%CURRENT_SCRIPT_DIR%\share\gdal
......
......@@ -235,10 +235,9 @@ function(func_install_otb_support_files)
)
install(
FILES ${PACKAGE_SUPPORT_FILES_DIR}/otbenv.profile
FILES ${PACKAGE_SUPPORT_FILES_DIR}/otbenv.bash
DESTINATION ${PKG_STAGE_DIR}
RENAME otbenv.sh
)
)
#we need startup files for mapla monteverdi in the root directory
#For Unixes, we make them inside pkgsetup script!
......@@ -293,6 +292,7 @@ function(func_install_monteverdi_support_files)
# we find this value by parsing ConfigureMonteverdi.h
set(ConfigureMonteverdi_H "${OTB_BINARY_DIR}/Modules/Visualization/MonteverdiCore/ConfigureMonteverdi.h")
if(NOT EXISTS "${ConfigureMonteverdi_H}")
#maybe deactivate monteverdi?
message(FATAL_ERROR "${ConfigureMonteverdi_H} does not exists. Cannot continue")
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment