From 275a1eaa0e59bd88e48c7dc0043e4ee14632ce18 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 19 Oct 2009 19:13:03 +0000 Subject: [PATCH] Improvement for SWIG: possibility to install binaries --- config_files/SWIG-1.3.40.sh | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/config_files/SWIG-1.3.40.sh b/config_files/SWIG-1.3.40.sh index 190d275..3b3f808 100755 --- a/config_files/SWIG-1.3.40.sh +++ b/config_files/SWIG-1.3.40.sh @@ -12,10 +12,12 @@ # #################################################################################### +SWIG_VERSION=1.3.40 + check_version(){ if [ -n "`which swig 2>/dev/null`" ]; then ver=`swig -version 2>&1 | grep -i version | awk '{ print $3 }' | sed -e 's/^\([0-9.]*\)\(.*\)/\1/'` - if [ "$ver" == "1.3.40" ] ; then + if [ "$ver" == "${SWIG_VERSION}" ] ; then return 0; fi fi @@ -28,6 +30,7 @@ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <