[ofa-general] RE: [PATCH] opensm/autogen.sh: remove autogen.sh from opensmsubdirectories

Eitan Zahavi eitan at mellanox.co.il
Thu Sep 6 00:32:29 PDT 2007


Hi Sasha,

Maybe I missed it but this also had to do with removing of configure.in
and adding the subdirectories to the 
management/opensm/Makefile.am 
And 
management/opensm/configure.in 

Was there a separate patch for that?

Thanks

Eitan

 

> -----Original Message-----
> From: Sasha Khapyorsky [mailto:sashak at voltaire.com] 
> Sent: Thursday, September 06, 2007 4:16 AM
> To: OpenIB
> Cc: Hal Rosenstock; Eitan Zahavi
> Subject: [PATCH] opensm/autogen.sh: remove autogen.sh from 
> opensmsubdirectories
> 
> 
> Remove autogen.sh scripts from opensm subdirectories
> 
> Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
> ---
>  opensm/autogen.sh                |   23 +++++++++++++++--------
>  opensm/complib/autogen.sh        |   15 ---------------
>  opensm/include/autogen.sh        |   14 --------------
>  opensm/libvendor/autogen.sh      |   14 --------------
>  opensm/opensm/autogen.sh         |   14 --------------
>  opensm/osmeventplugin/autogen.sh |   15 ---------------
>  opensm/osmtest/autogen.sh        |   14 --------------
>  7 files changed, 15 insertions(+), 94 deletions(-)  delete 
> mode 100755 opensm/complib/autogen.sh  delete mode 100755 
> opensm/include/autogen.sh  delete mode 100755 
> opensm/libvendor/autogen.sh  delete mode 100755 
> opensm/opensm/autogen.sh  delete mode 100755 
> opensm/osmeventplugin/autogen.sh  delete mode 100755 
> opensm/osmtest/autogen.sh
> 
> diff --git a/opensm/autogen.sh b/opensm/autogen.sh index 
> e463c0e..e1ec064 100755
> --- a/opensm/autogen.sh
> +++ b/opensm/autogen.sh
> @@ -63,12 +63,19 @@ fi
>  # visit all sub directories with autogen.sh  anyErr=0  for a 
> in `ls */autogen.sh`; do
> -    echo Visiting $a
> -    $a 2>&1 | sed 's/^/| /' | grep -v "arning: underquoted 
> definition"
> -    if test $? != 0; then
> -        echo $a failed
> -        anyErr=1
> -    fi
> +	dir=`dirname $a`
> +	test -d ${dir}/config || mkdir ${dir}/config
> +	echo Visiting $a
> +	( cd `dirname $a` && \
> +	set -x && \
> +	aclocal -I config -I ../config && \
> +	libtoolize --force --copy && \
> +	autoheader && \
> +	automake --foreign --add-missing --copy && \
> +	autoconf ) \
> +	2>&1 | sed 's/^/| /' | grep -v "arning: underquoted definition"
> +	if test $? != 0; then
> +		echo $a failed
> +		anyErr=1
> +	fi
>  done
> -
> -exit $anyErr
> diff --git a/opensm/complib/autogen.sh 
> b/opensm/complib/autogen.sh deleted file mode 100755 index 
> ec20fc5..0000000
> --- a/opensm/complib/autogen.sh
> +++ /dev/null
> @@ -1,15 +0,0 @@
> -#! /bin/sh
> -
> -# We change dir since the later utilities assume to work in 
> the project dir -cd ${0%*/*}
> -
> -# create config dir if not exist
> -test -d config || mkdir config
> -
> -set -x
> -(aclocal -I config -I ../config 2>&1 ) && \ -(libtoolize 
> --force --copy) && \
> -(autoheader) && \
> -(automake --foreign --add-missing --copy) && \ -autoconf
> -
> diff --git a/opensm/include/autogen.sh 
> b/opensm/include/autogen.sh deleted file mode 100755 index 
> 03401b0..0000000
> --- a/opensm/include/autogen.sh
> +++ /dev/null
> @@ -1,14 +0,0 @@
> -#! /bin/sh
> -
> -# We change dir since the later utilities assume to work in 
> the project dir -cd ${0%*/*}
> -
> -# create config dir if not exist
> -test -d config || mkdir config
> -
> -set -x
> -aclocal -I config
> -libtoolize --force --copy
> -autoheader
> -automake --foreign --add-missing --copy -autoconf diff --git 
> a/opensm/libvendor/autogen.sh b/opensm/libvendor/autogen.sh 
> deleted file mode 100755 index d30bf8f..0000000
> --- a/opensm/libvendor/autogen.sh
> +++ /dev/null
> @@ -1,14 +0,0 @@
> -#! /bin/sh
> -
> -# We change dir since the later utilities assume to work in 
> the project dir -cd ${0%*/*}
> -
> -# create config dir if not exist
> -test -d config || mkdir config
> -
> -set -x
> -(aclocal -I config -I ../config 2>&1 ) && \ -(libtoolize 
> --force --copy) && \
> -(autoheader) && \
> -(automake --foreign --add-missing --copy) && \ -autoconf 
> diff --git a/opensm/opensm/autogen.sh 
> b/opensm/opensm/autogen.sh deleted file mode 100755 index 
> d30bf8f..0000000
> --- a/opensm/opensm/autogen.sh
> +++ /dev/null
> @@ -1,14 +0,0 @@
> -#! /bin/sh
> -
> -# We change dir since the later utilities assume to work in 
> the project dir -cd ${0%*/*}
> -
> -# create config dir if not exist
> -test -d config || mkdir config
> -
> -set -x
> -(aclocal -I config -I ../config 2>&1 ) && \ -(libtoolize 
> --force --copy) && \
> -(autoheader) && \
> -(automake --foreign --add-missing --copy) && \ -autoconf 
> diff --git a/opensm/osmeventplugin/autogen.sh 
> b/opensm/osmeventplugin/autogen.sh
> deleted file mode 100755
> index ec20fc5..0000000
> --- a/opensm/osmeventplugin/autogen.sh
> +++ /dev/null
> @@ -1,15 +0,0 @@
> -#! /bin/sh
> -
> -# We change dir since the later utilities assume to work in 
> the project dir -cd ${0%*/*}
> -
> -# create config dir if not exist
> -test -d config || mkdir config
> -
> -set -x
> -(aclocal -I config -I ../config 2>&1 ) && \ -(libtoolize 
> --force --copy) && \
> -(autoheader) && \
> -(automake --foreign --add-missing --copy) && \ -autoconf
> -
> diff --git a/opensm/osmtest/autogen.sh 
> b/opensm/osmtest/autogen.sh deleted file mode 100755 index 
> d30bf8f..0000000
> --- a/opensm/osmtest/autogen.sh
> +++ /dev/null
> @@ -1,14 +0,0 @@
> -#! /bin/sh
> -
> -# We change dir since the later utilities assume to work in 
> the project dir -cd ${0%*/*}
> -
> -# create config dir if not exist
> -test -d config || mkdir config
> -
> -set -x
> -(aclocal -I config -I ../config 2>&1 ) && \ -(libtoolize 
> --force --copy) && \
> -(autoheader) && \
> -(automake --foreign --add-missing --copy) && \ -autoconf
> --
> 1.5.3.1.1.g1e61
> 
> 



More information about the general mailing list