From: vsr Date: Thu, 19 Dec 2013 15:38:37 +0000 (+0000) Subject: License file for DISTENE X-Git-Tag: V7_3_0~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=eb1300dd10d4bd4b8f92288fb4ffb2ca76d7ceaa;p=tools%2Finstall.git License file for DISTENE --- diff --git a/config_files/DISTENE.sh b/config_files/DISTENE.sh index a958d4e..0b8683e 100755 --- a/config_files/DISTENE.sh +++ b/config_files/DISTENE.sh @@ -34,6 +34,15 @@ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < /dev/null if [ $? -eq 0 ] ; then @@ -172,19 +175,6 @@ done #echo '' >> ${install_work}/${SHRC} 2>/dev/null #fi -# Licence activation - -# Source of license environment file - -echo '#------ License activation ------' >> ${install_work}/${SHRC} 2>/dev/null -echo 'export LICENSE_FILE=/product/distene/dlim8.var.sh' >> ${install_work}/${SHRC} 2>/dev/null -echo '' >> ${install_work}/${SHRC} 2>/dev/null -echo 'if [ -e "${LICENSE_FILE}" ] ; then' >> ${install_work}/${SHRC} 2>/dev/null -echo 'export SIMULOGD_LICENSE_FILE=29029@soleil' >> ${install_work}/${SHRC} 2>/dev/null -echo 'source ${LICENSE_FILE}' >> ${install_work}/${SHRC} 2>/dev/null -echo 'fi' >> ${install_work}/${SHRC} 2>/dev/null -echo '' >> ${install_work}/${SHRC} 2>/dev/null - # 1. first dump all environment files into the ${SHRC} file product_sequence="$2" install_products="$3" @@ -206,10 +196,10 @@ done # 2. writing global functions to _salome.sh file cat >> ${install_work}/_${SHRC} <> ${install_work}/_${SHRC} <> ${install_work}/_${CSHRC} <> ${install_work}/_${CSHRC} < ${INSTALL_WORK}/_tmp1 2>/dev/null sed -e 's%export\([[:blank:]]*\)LD_RUN_PATH=\$[{]\?LD_RUN_PATH[}]\?:\(.*\)%exporta\1LD_RUN_PATH \2%g' -e 's%export\([[:blank:]]*\)LD_RUN_PATH=\(.*\):\$[{]\?LD_RUN_PATH[}]\?%exportp\1LD_RUN_PATH \2%g' ${INSTALL_WORK}/_tmp1 > ${INSTALL_WORK}/_tmp2 -# Setting "/usr/X11R6/lib" path in LD_LIBRARY_PATH for the libGL.so.1 file -#if test `uname -m` = "x86_64" ; then -#echo '# Setting /usr/X11R6/lib64 path in LD_LIBRARY_PATH for the libGL.so.1 file' >> ${INSTALL_WORK}/_tmp2 -#echo 'export LD_LIBRARY_PATH=/usr/X11R6/lib64:${LD_LIBRARY_PATH}' >> ${INSTALL_WORK}/_tmp2 -#else -#echo '# Setting /usr/X11R6/lib path in LD_LIBRARY_PATH for the libGL.so.1 file' >> ${INSTALL_WORK}/_tmp2 -#echo 'export LD_LIBRARY_PATH=/usr/X11R6/lib:${LD_LIBRARY_PATH}' >> ${INSTALL_WORK}/_tmp2 -#fi - cat ${INSTALL_WORK}/_tmp2 >> ${install_work}/_${SHRC} # 5. Create a salome.csh file from salome.sh by replacing export by setenv, etc. @@ -467,7 +448,7 @@ return 0 #check existance of lib passed as first parameter #return 0 if lib exists -#if you pass second parameter search will be done in it +#if you pass second parameter search will be done in it #otherwise search will be done in ${LD_LIBRARY_PATH} #you should use : as dilimeter if you are going to pass second parameter check_lib_version(){ @@ -487,9 +468,9 @@ return 1 } find_in_path(){ -file=$1; shift; +file=$1; shift; path=$* -for i in `echo ${path} | sed -e"s%:% %g"` ; do +for i in `echo ${path} | sed -e"s%:% %g"` ; do ret=`find ${i} -name ${file} -maxdepth 1 2>/dev/null` if [ -n "${ret}" ] ; then ret=`echo ${ret} | sed -e"s%/\${file}$%%g"` @@ -504,7 +485,7 @@ sort_path(){ arg1=$1; val1=$2; arg2=$3; val2=$4 tmp="^${val1}$|^${val1}:|:${val1}$|:${val1}:" #echo ${val2} | grep -E "${tmp}" >/dev/null 2>&1 -#if [ $? -eq 0 ] ; then +#if [ $? -eq 0 ] ; then # echo "${arg2}" # return #fi @@ -530,7 +511,7 @@ rel_ver=`echo $1 | awk -F. '{if(NF>2) print $3; else print 0}'` let ver=${maj_ver}*10000+${min_ver}*100+${rel_ver} newer="" newerver=0 -for i in `echo ${PATH}:/usr/bin:/usr/local/bin | sed -e"s%:% %g"` ; do +for i in `echo ${PATH}:/usr/bin:/usr/local/bin | sed -e"s%:% %g"` ; do ret=`find ${i} -name gcc -maxdepth 1 2>/dev/null` if [ -n "${ret}" ] ; then maj_ver=`${ret} -dumpversion | awk -F. '{if(NF>0) print $1; else print 0}'` @@ -672,7 +653,7 @@ fix_gl_libs(){ if [ "${str_to_replace}" = "" ] ; then str_to_replace="-L${gllibdir} -lGL" fi - + la_files=`find . -name "*.la"` for la_file in ${la_files} XXX ; do if [ "${la_file}" = "XXX" ] ; then continue; fi @@ -831,7 +812,7 @@ if [ "${l}" != "X" ] ; then if [ -n "${gl2psdir}" ] && [ -d "${gl2psdir}" ] ; then sed -i "s%[[:space:]]\(-L\)\?[^[:space:]]*gl2ps-[0-9.]\+/lib% \1${gl2psdir}/lib%g" ${l} fi - + # . process freeimage dependencies if [ -n "${freeimagedir}" ] && [ -d "${freeimagedir}" ] ; then sed -i "s%[[:space:]]\(-L\)\?[^[:space:]]*freeimage-[0-9.]\+/lib% \1${freeimagedir}/lib%g" ${l} @@ -841,7 +822,7 @@ if [ "${l}" != "X" ] ; then if [ -n "${tbbdir}" ] && [ -d "${tbbdir}" ] ; then sed -i "s%[[:space:]]\(-L\)\?[^[:space:]]*tbb[^[:space:]]*/lib[^[:space:]]*% \1${tbbdir}%g" ${l} fi - + # . process cgns dependencies if [ -n "${cgnslibdir}" ] && [ -d "${cgnslibdir}" ] ; then sed -i "s%[[:space:]]\(-L\)\?[^[:space:]]*cgnslib-[0-9.]\+/lib% \1${cgnslibdir}/lib%g" ${l} @@ -956,7 +937,7 @@ if [ "${l}" != "X" ] ; then if [ -n "${paraviewdir}" ] && [ -d "${paraviewdir}" ] ; then sed -i "s%[[:space:]]\(-L\)\?[^[:space:]]*ParaView-[0-9]\.[0-9]\+\.[0-9]/lib% \1${paraviewdir}%g" ${l} fi - + # . process DISTENE MeshGems dependencies if [ -n "${mgemsdir}" ] && [ -d "${mgemsdir}" ] ; then sed -i "s%[[:space:]]\(-L\)\?[^[:space:]]*MeshGems-[0-9.]\+/Products/lib/Linux\(_64\)\?% \1${mgemsdir}%g" ${l}