From: spo Date: Fri, 28 Aug 2015 14:16:52 +0000 (+0300) Subject: Improve Linux scripts X-Git-Tag: V_1.4.0_beta4~207 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b3722c8001827f907c630595a796b5fb01c0672a;p=modules%2Fshaper.git Improve Linux scripts --- diff --git a/config.sh b/config.sh index 9e4a5113d..cf1ae4a91 100755 --- a/config.sh +++ b/config.sh @@ -6,15 +6,20 @@ echo "#!/bin/bash -ex" >> env_config.sh 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 + 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 fi + +if [ -f DEBUG ]; then + PLATFORM=${PLATFORM}_d fi + echo "export PLATFORM=${PLATFORM}" >> env_config.sh main() {