Salome HOME
Remove obsolete methods
[modules/shaper.git] / env.sh
diff --git a/env.sh b/env.sh
index 6282b1a850555aae20f975d24a0d4ce62605a9d8..67da8f7580fc39018bb7b1280a656ec3f500b230 100644 (file)
--- a/env.sh
+++ b/env.sh
@@ -2,17 +2,11 @@
 
 set -o nounset
 
-PLATFORM=""
-if [ -f PLATFORM ]; then
-PLATFORM="$(lsb_release -is)"
-RELEASE="$(lsb_release -rs)"
-if [ "${PLATFORM}" = 'CentOS' ]; then PLATFORM=-centos
-elif [ "${PLATFORM}" = 'Debian' ]; then
-  if [ "${RELEASE}" = '8.0' ]; then PLATFORM=-d8
-  else PLATFORM=-d6
-  fi
-fi
+if [[ ! -f env_config.sh ]]; then
+  echo "Can not find env_config.sh. Please, run config.sh."
+  exit 1
 fi
+source env_config.sh
 
 export ROOT_DIR=$(cd $(dirname $0)/.. && pwd)
 export SOURCES_DIR=${ROOT_DIR}/sources