From 51b5473403d8d3721b5fce1c07d5716ba17b0442 Mon Sep 17 00:00:00 2001 From: inv Date: Thu, 1 Jul 2010 15:34:29 +0000 Subject: [PATCH] Update ParaView config file --- config_files/ParaView-3.8.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/config_files/ParaView-3.8.sh b/config_files/ParaView-3.8.sh index 8d2557a..f9abe58 100755 --- a/config_files/ParaView-3.8.sh +++ b/config_files/ParaView-3.8.sh @@ -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 -- 2.39.2