Remove autogen.sh scripts from opensm subdirectories

Signed-off-by: Sasha Khapyorsky <[EMAIL PROTECTED]>
---
 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

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to