]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
SALOME 6.5.0 preparation: update script for gl2ps (1.3.5)
authorinv <inv@opencascade.com>
Wed, 4 Apr 2012 07:54:39 +0000 (07:54 +0000)
committerinv <inv@opencascade.com>
Wed, 4 Apr 2012 07:54:39 +0000 (07:54 +0000)
13 files changed:
config_CentOS_5.5_64bit.xml
config_Debian_4.0.xml
config_Debian_4.0_64bit.xml
config_Debian_5.0_64bit.xml
config_Debian_6.0_64bit.xml
config_Mandriva_2008.0.xml
config_Mandriva_2008.0_64bit.xml
config_Mandriva_2010.0.xml
config_Mandriva_2010.0_64bit.xml
config_Red_Hat_Enterprise_WS_4_64bit.xml
config_Scientific_SL_5.1_64bit.xml
config_files/gl2ps-1.3.5.sh [deleted file]
config_files/gl2ps.sh [new file with mode: 0755]

index 759587244b17d45f98639f77ac2e9ef793774862..3b004e810c273612ad0bef4ae6196b56ac273157 100755 (executable)
                     version="1.3.5"
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="gl2ps-1.3.5.sh"/>
+                   script="gl2ps.sh"/>
     </product>
     <product name="tbb"
             type="prerequisite"
index 634c727f1149aacefb2a207a94afe5b2ae74f401..59b01e1b200bb4b4396966618483cd5af7273aeb 100755 (executable)
                     version="1.3.5"
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="gl2ps-1.3.5.sh"/>
+                   script="gl2ps.sh"/>
     </product>
     <product name="tbb"
             type="prerequisite"
index 55665ca1ca03282a0e9651db50fc8d3f812577f3..bd5a7c58771c4dcfdcff8231300502b40cdd5c84 100755 (executable)
                     version="1.3.5"
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="gl2ps-1.3.5.sh"/>
+                   script="gl2ps.sh"/>
     </product>
     <product name="tbb"
             type="prerequisite"
index d7feb844d8d31d7ac20c23ff8dab7b96b01c314d..959fc3f0b7ac8e4288f36a4b1bfb31ecc4607e21 100755 (executable)
                     version="1.3.5"
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="gl2ps-1.3.5.sh"/>
+                   script="gl2ps.sh"/>
     </product>
     <product name="tbb"
             type="prerequisite"
index e8c2bafe0d8877e1e6ae92eebbaad050d1c183c3..fb7511e5663393776d6dd8fafa61e3d702afd1d0 100755 (executable)
                     version="1.3.5"
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="gl2ps-1.3.5.sh"/>
+                   script="gl2ps.sh"/>
     </product>
     <product name="tbb"
             type="prerequisite"
index d9b29560f600f90f745cab6b7f97d0500bb595ba..62e2e32251a7cbac0566bfb98a5094df08c21d90 100755 (executable)
                     version="1.3.5"
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="gl2ps-1.3.5.sh"/>
+                   script="gl2ps.sh"/>
     </product>
     <product name="tbb"
             type="prerequisite"
index d534d99c3b46cbe21718bc425f6614c1c3572cd4..302b53a18ea5c3fb61116ab8ce87f1418dd9c9dc 100755 (executable)
                     version="1.3.5"
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="gl2ps-1.3.5.sh"/>
+                   script="gl2ps.sh"/>
     </product>
     <product name="tbb"
             type="prerequisite"
index 377c0a3032007694e309f245712ba9f2e9647f54..bb4a8dcb71910bb9dc91e9d5739d9bb30fbd0fc1 100755 (executable)
                     version="1.3.5"
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="gl2ps-1.3.5.sh"/>
+                   script="gl2ps.sh"/>
     </product>
     <product name="tbb"
             type="prerequisite"
index 1df2e327edcdf2ce027d3c8cab9eb79de7351c42..02efb2566ef797e8a526966c3e7d6ec1a41fdd2f 100755 (executable)
                     version="1.3.5"
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="gl2ps-1.3.5.sh"/>
+                   script="gl2ps.sh"/>
     </product>
     <product name="tbb"
             type="prerequisite"
index 1494ee31800cf3ed9712f1a1b658baee2a7f7a72..b9cd9c80406d45adf7e0d9c5d1af87183e4a2d09 100755 (executable)
                     version="1.3.5"
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="gl2ps-1.3.5.sh"/>
+                   script="gl2ps.sh"/>
     </product>
     <product name="tbb"
             type="prerequisite"
index b5de1618a39671b8c5132f0f10790c84cbe30c8f..b52092b7330ae8ce2c40fbde4c9afe8ad22da69d 100755 (executable)
                     version="1.3.5"
                    disable="false"
                    installdiskspace="86460,273932,478152"
-                   script="gl2ps-1.3.5.sh"/>
+                   script="gl2ps.sh"/>
     </product>
     <product name="tbb"
             type="prerequisite"
diff --git a/config_files/gl2ps-1.3.5.sh b/config_files/gl2ps-1.3.5.sh
deleted file mode 100755 (executable)
index 21d91d2..0000000
+++ /dev/null
@@ -1,144 +0,0 @@
-#!/bin/bash -noprofile
-
-####################################################################################
-#  File      : gl2ps-1.3.5.sh
-#  Created   : Thu Dec 18 12:01:00 2002
-#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
-#  Project   : SALOME
-#  Module    : Installation Wizard
-#  Copyright : 2002-2008 CEA
-#
-#  This script is the part of the SALOME installation procedure.
-#
-####################################################################################
-
-GL2PS_REF_VERSION="1.3.5"
-
-check_version()
-{
-# check existance of freeimage and its version
-if [ -n ${GL2PSHOME} ]; then
-  return 0
-fi
-
-ver_maj=`cat ${PRODUCT_SRC_DIR}/CMakeLists.txt | grep set\(GL2PS_MAJOR_VERSION | sed -e "s%[A-Z_()2 ]%%g"`
-ver_min=`cat ${PRODUCT_SRC_DIR}/CMakeLists.txt | grep set\(GL2PS_MINOR_VERSION | sed -e "s%[A-Z_()2 ]%%g"`
-ver_patch=`cat ${PRODUCT_SRC_DIR}/CMakeLists.txt | grep set\(GL2PS_PATCH_VERSION | sed -e "s%[A-Z_()2 ]%%g"`
-ver="${ver_maj}.${ver_min}.${ver_patch}"
-
-if [ "$ver" == "${GL2PS_REF_VERSION}" ] ; then
-    return 0
-fi
-return 1
-}
-
-print_env_bin()
-{
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export GL2PSHOME=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
-export PATH=\${GL2PSHOME}/bin:\$PATH 
-export LD_LIBRARY_PATH=\${GL2PSHOME}/lib:\${LD_LIBRARY_PATH}
-##
-EOF
-(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
-}
-
-print_env_src()
-{
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
-# nothing to do
-##
-EOF
-(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
-}
-
-try_preinstalled(){
-try_existing ${PRODUCT_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
-try_existing ${PRODUCT_SRC_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
-return $?
-}
-
-install_source()
-{
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
-source ${INSTALL_WORK}/$SHRC
-
-# unpack
-check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INST_ROOT}
-
-# to generate environment scripts
-try_preinstalled
-}
-
-install_source_and_build()
-{
-# install sources
-install_source
-
-# build sources
-test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
-
-cd ${PRODUCT_SRC_DIR}
-
-## building FreeImage library
-
-# compile
-#check_job ${PRODUCT_DIR}/MAKE.LOG 
-check_job ${PRODUCT_DIR}/CONFIGURE.LOG cmake -DCMAKE_INSTALL_PREFIX=${PRODUCT_DIR} -DCMAKE_BUILD_TYPE=Release
-
-
-# compile
-#check_job ${PRODUCT_DIR}/MAKE.LOG 
-check_job ${PRODUCT_DIR}/MAKE.LOG make
-
-# install
-#check_job ${PRODUCT_DIR}/INSTALL.LOG 
-check_job ${PRODUCT_DIR}/INSTALL.LOG make install 
-
-cd ${PRODUCT_DIR};
-
-# remove sources and temporary files after building
-if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
-    test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
-fi
-
-# to generate environment scripts
-try_preinstalled
-}
-
-install_binary()
-{
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
-source ${INSTALL_WORK}/$SHRC
-
-# create a product directory
-test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
-
-check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
-
-### modifing la files
-cd ${PRODUCT_DIR}/lib
-
-# to generate environment script for sources
-try_preinstalled
-}
-
-export PROCEDURE=$1;
-export INSTALL_WORK=$2;
-export SOURCE_DIR=$3;
-export INST_ROOT=$4;
-export PRODUCT_SEQUENCE=$5;
-export PRODUCT_TYPE=$6;
-export INSTALL_PRODUCTS=$7;
-shift
-REMOVE_SRC_TMP=$8;
-test $# == 10 && shift && SINGLE_DIR=$9
-export PRODUCT="gl2ps-${GL2PS_REF_VERSION}"
-export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
-export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
-export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT}_SRC
-source ./common.sh
-$PROCEDURE 
diff --git a/config_files/gl2ps.sh b/config_files/gl2ps.sh
new file mode 100755 (executable)
index 0000000..adedb1f
--- /dev/null
@@ -0,0 +1,138 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : gl2ps.sh
+#  Created   : Thu Dec 18 12:01:00 2002
+#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+#  Project   : SALOME
+#  Module    : Installation Wizard
+#  Copyright : 2002-2012 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+#
+# gl2ps version
+#
+GL2PS_VERSION=1.3.5
+
+check_version()
+{
+# check availability of glp2s and its version
+if [ "${GL2PSHOME}" != "" ] && [ -f ${GL2PSHOME}/include/gl2ps.h ] ; then
+    ver_major=`grep "#define GL2PS_MAJOR_VERSION" ${GL2PSHOME}/include/gl2ps.h | awk '{print $3}'`
+    ver_minor=`grep "#define GL2PS_MINOR_VERSION" ${GL2PSHOME}/include/gl2ps.h | awk '{print $3}'`
+    ver_maint=`grep "#define GL2PS_PATCH_VERSION" ${GL2PSHOME}/include/gl2ps.h | awk '{print $3}'`
+    ver="$ver_major.$ver_minor.$ver_maint"
+    if [ "$ver" == "${GL2PS_VERSION}" ] ; then
+        return 0
+    fi
+fi
+return 1
+}
+
+print_env_bin()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export GL2PSHOME=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PATH=\${GL2PSHOME}/bin:\$PATH 
+export LD_LIBRARY_PATH=\${GL2PSHOME}/lib:\${LD_LIBRARY_PATH}
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+print_env_src()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
+# nothing to do
+##
+EOF
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+# unpack
+check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INST_ROOT}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
+
+cd ${PRODUCT_SRC_DIR}
+
+# configure
+check_job ${PRODUCT_DIR}/CONFIGURE.LOG cmake -DCMAKE_INSTALL_PREFIX=${PRODUCT_DIR} -DCMAKE_BUILD_TYPE=Release
+
+# compile
+check_job ${PRODUCT_DIR}/MAKE.LOG make
+
+# install
+check_job ${PRODUCT_DIR}/INSTALL.LOG make install 
+
+cd ${PRODUCT_DIR};
+
+# remove sources and temporary files after building
+if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
+    test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
+fi
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_binary()
+{
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+# create a product directory
+test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
+
+### modifing la files
+cd ${PRODUCT_DIR}/lib
+
+# to generate environment script for sources
+try_preinstalled
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INST_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+export PRODUCT_TYPE=$6;
+export INSTALL_PRODUCTS=$7;
+shift
+REMOVE_SRC_TMP=$8;
+test $# == 10 && shift && SINGLE_DIR=$9
+export PRODUCT="gl2ps-${GL2PS_VERSION}"
+export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT}_SRC
+source ./common.sh
+$PROCEDURE