1cabdff1aSopenharmony_citoupper(){
2cabdff1aSopenharmony_ci    echo "$@" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
3cabdff1aSopenharmony_ci}
4cabdff1aSopenharmony_ci
5cabdff1aSopenharmony_ciname=lib$1
6cabdff1aSopenharmony_ciucname=$(toupper ${name})
7cabdff1aSopenharmony_cifile=$2
8cabdff1aSopenharmony_cifile2=$3
9cabdff1aSopenharmony_ci
10cabdff1aSopenharmony_cieval $(awk "/#define ${ucname}_VERSION_M/ { print \$2 \"=\" \$3 }" "$file")
11cabdff1aSopenharmony_ciif [ -f "$file2" ]; then
12cabdff1aSopenharmony_ci  eval $(awk "/#define ${ucname}_VERSION_M/ { print \$2 \"=\" \$3 }" "$file2")
13cabdff1aSopenharmony_cifi
14cabdff1aSopenharmony_cieval ${ucname}_VERSION=\$${ucname}_VERSION_MAJOR.\$${ucname}_VERSION_MINOR.\$${ucname}_VERSION_MICRO
15cabdff1aSopenharmony_cieval echo "${name}_VERSION=\$${ucname}_VERSION"
16cabdff1aSopenharmony_cieval echo "${name}_VERSION_MAJOR=\$${ucname}_VERSION_MAJOR"
17cabdff1aSopenharmony_cieval echo "${name}_VERSION_MINOR=\$${ucname}_VERSION_MINOR"
18