[ewg] [PATCH ofed-1.4] ofabuild: proper detection of ibsim version

Sasha Khapyorsky sashak at voltaire.com
Sat Nov 1 13:07:15 PDT 2008


Detect ibsim version properly as it is defined in the tree rather than
using hard coded "0.4" value.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---

The patch is against ofed_1_4 branch.

 make.srpms |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/make.srpms b/make.srpms
index 515384a..d3b92b7 100755
--- a/make.srpms
+++ b/make.srpms
@@ -66,7 +66,7 @@ case $NAME in
     NAME=dapl
     ;;
     ibsim)
-    VERSION=0.4
+    VERSION=`sed -ne '/#define IBSIM_VERSION/s/^.*\"\(.*\)\".*$/\1/p' ibsim/ibsim.c`
     ;;
     qlvnictools)
     VERSION=0.0.1
-- 
1.6.0.3.517.g759a




More information about the ewg mailing list