Hi,

This adds check and creation of 'config' directory in autogen.sh scripts.
It is useful with stan-alone (non SVN) tree.

Signed-off-by: Sasha Khapyorsky <[EMAIL PROTECTED]>

diff --git a/src/userspace/management/osm/complib/autogen.sh 
b/src/userspace/management/osm/complib/autogen.sh
--- a/src/userspace/management/osm/complib/autogen.sh
+++ b/src/userspace/management/osm/complib/autogen.sh
@@ -3,6 +3,9 @@
 # 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) && \
diff --git a/src/userspace/management/osm/include/autogen.sh 
b/src/userspace/management/osm/include/autogen.sh
index 6e51328..03401b0 100755
--- a/src/userspace/management/osm/include/autogen.sh
+++ b/src/userspace/management/osm/include/autogen.sh
@@ -3,6 +3,9 @@
 # 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
diff --git a/src/userspace/management/osm/libvendor/autogen.sh 
b/src/userspace/management/osm/libvendor/autogen.sh
index 8d06d45..d30bf8f 100755
--- a/src/userspace/management/osm/libvendor/autogen.sh
+++ b/src/userspace/management/osm/libvendor/autogen.sh
@@ -3,6 +3,9 @@
 # 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) && \
diff --git a/src/userspace/management/osm/opensm/autogen.sh 
b/src/userspace/management/osm/opensm/autogen.sh
index 8d06d45..d30bf8f 100755
--- a/src/userspace/management/osm/opensm/autogen.sh
+++ b/src/userspace/management/osm/opensm/autogen.sh
@@ -3,6 +3,9 @@
 # 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) && \
diff --git a/src/userspace/management/osm/osmtest/autogen.sh 
b/src/userspace/management/osm/osmtest/autogen.sh
index 8d06d45..d30bf8f 100755
--- a/src/userspace/management/osm/osmtest/autogen.sh
+++ b/src/userspace/management/osm/osmtest/autogen.sh
@@ -3,6 +3,9 @@
 # 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) && \
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

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

Reply via email to