blob: 90d14a6c4391cd70acd8a6313f7e39a0a0a46e6d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
--- wrapper/check_ver.orig Thu Apr 13 14:02:00 2006
+++ wrapper/check_ver Thu Apr 13 14:11:54 2006
@@ -1,10 +1,17 @@
#!/bin/sh
-if [ -f .$2_version ]; then
- mv .$2_version .$2_version.old
+if [ -f .${2}_version ]; then
+ mv .${2}_version .${2}_version.old
fi
-
-MAJOR_VER=`cat $1/version.h | grep "#define MAJOR_VERSION" | awk -F\ '{print $3}'`
-MINOR_VER=`cat $1/version.h | grep "#define MINOR_VERSION" | awk -F\ '{print $3}'`
-BUILD_NUM=`cat $1/version.h | grep "#define BUILD_NUMBER" | awk -F\ '{print $3}'`
-echo -e "$MAJOR_VER.$MINOR_VER.$BUILD_NUM" > .$2_version
+case ${2} in
+ pwlib)
+ grep "PWLIB_VERSION" ${1}/../../include/ptbuildopts.h | \
+ awk -F\ '{print $3}' > .${2}_version
+ ;;
+ openh323)
+ grep "OPENH323_VERSION" ${1}/../../include/${2}/${2}buildopts.h | \
+ awk -F\ '{print $3}' > .${2}_version
+ ;;
+ *)
+ ;;
+esac
|