diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/odp_version.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/odp_version.sh b/scripts/odp_version.sh new file mode 100755 index 0000000..72ae404 --- /dev/null +++ b/scripts/odp_version.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +VFILE="platform/linux-generic/include/api/odp_version.h" + +GEN=`grep "define ODP_VERSION_API_GENERATION" ${VFILE} | cut -d ' ' -f 3` +MAJ=`grep "define ODP_VERSION_API_MAJOR" ${VFILE} | cut -d ' ' -f 3` +MIN=`grep "define ODP_VERSION_API_MINOR" ${VFILE} | cut -d ' ' -f 3` + +echo -n $GEN.$MAJ.$MIN |