]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Remove obsolete files
authorvsr <vsr@opencascade.com>
Mon, 15 May 2006 08:12:09 +0000 (08:12 +0000)
committervsr <vsr@opencascade.com>
Mon, 15 May 2006 08:12:09 +0000 (08:12 +0000)
config_files/HappyDoc-r2_1.sh [deleted file]
config_files/netgen-4.3.sh [deleted file]

diff --git a/config_files/HappyDoc-r2_1.sh b/config_files/HappyDoc-r2_1.sh
deleted file mode 100755 (executable)
index 03ad524..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-#!/bin/sh
-
-check_version(){
-check_lib_version happydoc $PATH
-if [ "$?" -ne "0" ]; then
-   return 1
-fi
-happydoc 2&> /dev/null
-if [ "$?" -eq "0" ]; then
-    ver=`happydoc | grep "HappyDoc version 2.1" | sort -u | awk '{print $NF}'`
-    if [ "$ver" == "2.1" ]; then
-       return 0
-    fi
-fi
-return 1
-}
-
-print_env(){
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export PATH=\${INSTALL_ROOT}/${PRODUCT}/bin:\${PATH}
-export PYTHONPATH=\${INSTALL_ROOT}/${PRODUCT}/lib/python\${PYTHON_VERSION}/site-packages:\${PYTHONPATH}
-##
-EOF
-(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
-}
-
-# looks for the native product and collects it's environment (used by make_env())
-try_native(){
-happydoc="`find_in_path happydoc ${PATH}`"
-if [ -n "${happydoc}" ] ; then
-    ver=`happydoc | grep "HappyDoc version 2.1" | sort -u | awk '{print $NF}'`
-    cat > ${INSTALL_WORK}/try_native.py <<EOF 
-import sys
-try :
-    import happydoclib
-    sys.exit(0)    
-except ImportError, r :
-    sys.exit(1)
-EOF
-    python ${INSTALL_WORK}/try_native.py
-    if [ $? -eq 0 ] && [ "$ver" == "2.1" ] ; then
-       tmp="${happydoc} ${happydoc} \${PATH} ${PATH}";  
-       path=`sort_path ${tmp}`
-       pythonpath=`python -c "import happydoclib; print happydoclib.__file__" 2>/dev/null`
-       pythonpath=`dirname $pythonpath`
-       pythonpath=`dirname $pythonpath`
-       tmp="${pythonpath} ${pythonpath} \${PYTHONPATH} ${PYTHONPATH}";  
-       pythonpath=`sort_path ${tmp}`
-       cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export PATH=${path}
-export PYTHONPATH=${pythonpath}
-##
-EOF
-       make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
-       rm -f ${INSTALL_WORK}/try_native.py
-       return 0
-    fi
-fi
-rm -f ${INSTALL_WORK}/try_native.py
-return 1
-}
-
-try_preinstalled(){
-try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-return $?
-}
-
-install_source()
-{
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-source ${INSTALL_WORK}/$SHRC
-
-check_jb tar xfz ${SOURCE_DIR}/HappyDoc_r2_1.tar.gz -C ${INSTALL_WORK}
-
-cd ${PRODUCT_WORK}
-makedir ${PRODUCT_DIR}
-check_job ${PRODUCT_DIR}/INSTALL.LOG python setup.py install --prefix=${PRODUCT_DIR}
-#file_pth=${PRODUCT_DIR}/lib/python\${PYTHON_VERSION}/site-packages/happydoclib.pth
-#if [ ! -f ${file_pth} ] ; then
-#    touch ${file_pth}
-#    cat > ${file_pth} <<EOF 
-#happydoclib
-#EOF
-#fi
-
-#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
-cd ${PRODUCT_DIR}; rm -fr ${PRODUCT_WORK}
-print_env
-}
-
-install_binary()
-{
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-source ${INSTALL_WORK}/$SHRC
-
-check_jb tar xfz ${SOURCE_DIR}/HappyDoc-r2_1.tar.gz -C ${INSTALL_ROOT}
-
-print_env
-}
-
-export PROCEDURE=$1;
-export INSTALL_WORK=$2;
-export SOURCE_DIR=$3;
-export INSTALL_ROOT=$4;
-export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="happydoc" ; fi
-export PRODUCT="HappyDoc-r2_1"
-export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
-export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
-source ./common.sh
-$PROCEDURE 
diff --git a/config_files/netgen-4.3.sh b/config_files/netgen-4.3.sh
deleted file mode 100755 (executable)
index c89e14a..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-#!/bin/sh
-
-check_version()
-{
-# check existance of netgen
-# unfortunarely we can't find anything about netgen version
-if [ -n "$NETGENROOT" ]; then
-  return 0
-fi
-return 1
-}
-
-print_env()
-{
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export NETGENHOME=\${INSTALL_ROOT}/${PRODUCT}
-##
-EOF
-(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
-}
-
-# looks for the native product and collects it's environment (used by make_env())
-try_native(){
-check_version
-if [ $? -eq 0 ] ; then
-    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export NETGENHOME=\${NETGENROOT}
-##
-EOF
-    make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
-    return 0
-fi
-return 1;
-}
-
-try_preinstalled(){
-try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-return $?
-}
-
-install_source()
-{
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-source ${INSTALL_WORK}/$SHRC
-
-makedir ${PRODUCT_DIR}
-
-check_jb tar xfz ${SOURCE_DIR}/netgen-4.3.tar.gz -C ${INSTALL_WORK}
-
-export MACHINE=LINUX
-
-# apply patch: to make compilable on latest versions of gcc
-(cd ${PRODUCT_WORK}/libsrc/meshing; echo -e '14s/^$/class Mesh;\nwq' | ed - meshtype.hpp > /dev/null)
-
-for directory in csg general geom2d gprim interface linalg meshing opti stlgeom ; do
-    cd ${PRODUCT_WORK}/libsrc/${directory}
-    check_job ${PRODUCT_DIR}/MAKE.LOG make
-done
-
-mkdir -p ${PRODUCT_DIR}/lib/LINUX
-cp -f ${PRODUCT_WORK}/lib/LINUX/* ${PRODUCT_DIR}/lib/LINUX
-mkdir -p ${PRODUCT_DIR}/include
-cp -f ${PRODUCT_WORK}/libsrc/interface/nglib.h ${PRODUCT_DIR}/include
-
-#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
-cd ${PRODUCT_DIR}; rm -fr ${PRODUCT_WORK}
-print_env
-}
-
-install_binary()
-{
-make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
-source ${INSTALL_WORK}/$SHRC
-
-check_jb tar xfz ${SOURCE_DIR}/netgen-4.3.tar.gz -C ${INSTALL_ROOT}
-
-print_env
-}
-
-export PROCEDURE=$1;
-export INSTALL_WORK=$2;
-export SOURCE_DIR=$3;
-export INSTALL_ROOT=$4;
-export PRODUCT_SEQUENCE=$5;
-if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="netgen" ; fi
-export PRODUCT="netgen-4.3"
-export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
-export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
-source ./common.sh
-$PROCEDURE