]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Update ParaView config file
authorinv <inv@opencascade.com>
Thu, 1 Jul 2010 15:34:29 +0000 (15:34 +0000)
committerinv <inv@opencascade.com>
Thu, 1 Jul 2010 15:34:29 +0000 (15:34 +0000)
config_files/ParaView-3.8.sh

index 8d2557a8c0571a54483666449972fb8c439d6af8..f9abe58b3449ed2c9499673c9ea810aeb1209978 100755 (executable)
@@ -67,6 +67,7 @@ make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}
 source ${INSTALL_WORK}/$SHRC
 
 check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INST_ROOT}
+check_jb tar xfz ${SOURCE_DIR}/ParaViewData-${PVVERSION}.tar.gz -C ${INST_ROOT}
 
 # to generate environment scripts
 try_preinstalled
@@ -221,6 +222,23 @@ source ${INSTALL_WORK}/$SHRC
 test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
 
 check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
+check_jb tar xfz ${SOURCE_DIR}/../../SOURCES/ParaViewData-${PVVERSION}.tar.gz -C ${INST_ROOT}
+
+cd ${PRODUCT_DIR}
+
+for f in `find . -name *.cmake` ; do
+sed -e "s%/[^\";]*/bin/moc%$QTDIR/bin/moc%g"     \
+    -e "s%/[^\";]*/bin/uic%$QTDIR/bin/uic%g"     \
+    -e "s%/[^\";]*/bin/rcc%$QTDIR/bin/rcc%g"     \
+    -e "s%/[^\";]*/bin/qmake%$QTDIR/bin/qmake%g" \
+    -e "s%/[^\";]*/lib/libQt%$QTDIR/lib/libQt%g" \
+    -e "s%/[^\";]*/lib64/libQt%$QTDIR/lib64/libQt%g" \
+    -e "s%/[^\";]*/lib/python\([0-9].[0-9]\)/config/libpython%$PYTHONHOME/lib/python\1/config/libpython%g" \
+    -e "s%/[^\";]*/include/python\([0-9].[0-9]\)%$PYTHONHOME/include/python\1%g" \
+    ${f} > ${f}.new
+    mv -f ${f}.new ${f}
+done
+
 
 # to generate environment script for sources
 try_preinstalled