[openib-general] [PATCH] osm/*/autogen.sh: check and create config dir

Sasha Khapyorsky sashak at voltaire.com
Thu Feb 2 14:58:53 PST 2006


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 <sashak at voltaire.com>

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) && \



More information about the general mailing list