diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/gen_version.sh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/build/gen_version.sh b/build/gen_version.sh index dd01d95..f594ddd 100644 --- a/build/gen_version.sh +++ b/build/gen_version.sh @@ -12,21 +12,21 @@ parse_configure() { } if test -f "${libva_topdir}/configure.ac"; then - libva_major_version=`parse_configure_ac libva_major_version` - libva_minor_version=`parse_configure_ac libva_minor_version` - libva_micro_version=`parse_configure_ac libva_micro_version` + va_api_major_version=`parse_configure_ac va_api_major_version` + va_api_minor_version=`parse_configure_ac va_api_minor_version` + va_api_micro_version=`parse_configure_ac va_api_micro_version` elif test -f "${libva_topdir}/configure"; then - libva_major_version=`parse_configure LIBVA_MAJOR_VERSION` - libva_minor_version=`parse_configure LIBVA_MINOR_VERSION` - libva_micro_version=`parse_configure LIBVA_MICRO_VERSION` + va_api_major_version=`parse_configure VA_API_MAJOR_VERSION` + va_api_minor_version=`parse_configure VA_API_MINOR_VERSION` + va_api_micro_version=`parse_configure VA_API_MICRO_VERSION` else echo "ERROR: configure or configure.ac file not found in $libva_topdir/" exit 1 fi -libva_version="$libva_major_version.$libva_minor_version.$libva_micro_version" +va_api_version="$va_api_major_version.$va_api_minor_version.$va_api_micro_version" -sed -e "s/@LIBVA_MAJOR_VERSION@/${libva_major_version}/" \ - -e "s/@LIBVA_MINOR_VERSION@/${libva_minor_version}/" \ - -e "s/@LIBVA_MICRO_VERSION@/${libva_micro_version}/" \ - -e "s/@LIBVA_VERSION@/${libva_version}/" \ +sed -e "s/@VA_API_MAJOR_VERSION@/${va_api_major_version}/" \ + -e "s/@VA_API_MINOR_VERSION@/${va_api_minor_version}/" \ + -e "s/@VA_API_MICRO_VERSION@/${va_api_micro_version}/" \ + -e "s/@VA_API_VERSION@/${va_api_version}/" \ $version_h_in |