}
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
}
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
}
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
}
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
}
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
}
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
}
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
}
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
}
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
}
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
}
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
}
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
}
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
}
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
}
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
}
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
}
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
}
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
}
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
}
print_env_bin(){
-if test `uname -m` = "x86_64" ; then
-export LIB_PREFIX=64
-else
-export LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
print_env_bin()
{
-if test `uname -m` = "x86_64" ; then
-LIB_PREFIX=64
-else
-LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
mv -f $l"_" $l
fi
# 4. process VTK dependencies
- if test `uname -m` = "x86_64" ; then
- vtkdir=`printenv VTKHOME`/lib64/vtk-5.0
- vtkldir=`printenv VTKHOME`/lib64
+ vtkpath=`printenv VTKHOME`
+ if [ `uname -m` = "x86_64" ] && [ -d ${vtkpath}/lib64 ] ; then
+ LIB_PREFIX=64
+ elif [ -d ${vtkpath}/lib ] ; then
+ LIB_PREFIX=""
else
- vtkdir=`printenv VTKHOME`/lib/vtk-5.0
- vtkldir=`printenv VTKHOME`/lib
+ LIB_PREFIX=64
fi
+ vtkldir=${vtkpath}/lib${LIB_PREFIX}
+ vtkdir=${vtkldir}/vtk-5.0
if [ -n "${VTKHOME}" ] && [ -d "${vtkdir}" ] && [ -d "${vtkldir}" ] ; then
# echo $l $VTKHOME $vtkdir
sed -e "s%-L[^[:space:]]*VTK[^[:space:]]*/\(lib\|lib64\)/vtk\-5\.0%-L${vtkdir}%g" \
print_env_bin()
{
-if test `uname -m` = "x86_64" ; then
-export OMNI_LIB_PREFIX="64"
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ OMNI_LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ OMNI_LIB_PREFIX=""
+else
+ OMNI_LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
print_env_bin()
{
-if test `uname -m` = "x86_64" ; then
-LIB_PREFIX=64
-else
-LIB_PREFIX=""
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ LIB_PREFIX=""
+else
+ LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
# modify sipconfig.py file
if [ -n "${PYTHONHOME}" ] && [ -n "${QTDIR}" ] ; then
- if test `uname -m` = "x86_64" ; then
+ if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
LIB_PREFIX=64
- else
+ elif [ -d ${PRODUCT_DIR}/lib ] ; then
LIB_PREFIX=""
+ else
+ LIB_PREFIX=64
fi
cd ${PRODUCT_DIR}/lib${LIB_PREFIX}/python${PYTHON_VERSION}/site-packages
python_version=`python -V 2>&1 | awk '{print $2}' | awk -F. '{printf("0x%02d%02d%02d",$1,$2,$3)}'`
print_env_bin()
{
-if test `uname -m` = "x86_64" ; then
-export PYTHON_LIB_PREFIX=64
+if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then
+ PYTHON_LIB_PREFIX=64
+elif [ -d ${PRODUCT_DIR}/lib ] ; then
+ PYTHON_LIB_PREFIX=""
+else
+ PYTHON_LIB_PREFIX=64
fi
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM