Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[build-xbmc-addons.sh] fix xbmc-platform version extraction

  • Loading branch information...
commit 2da26c7e56433f2001e48cbe71cfc3095deab46a 1 parent fa43339
@wsnipex wsnipex authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  build-xbmc-addons.sh
View
2  build-xbmc-addons.sh
@@ -197,7 +197,7 @@ function getPackageDetails {
PACKAGEVERSION=$(awk -F'=' '!/<?xml/ && /version/ && !/>/ {gsub("\"",""); VER=$2} END {print VER}' ${addon}-${BRANCH}/${addon:0:5}*/addon.xml)
else
# try CmakeLists as a final effort
- PACKAGEVERSION=$(grep -E "PROPERTIES.*VERSION" ${addon}-${BRANCH}/CMakeLists.txt | grep -oE "[0-9\.]+")
+ PACKAGEVERSION=$(awk '/SET\(.*_VERSION/ {gsub(")",""); VER=VER"."$2 } END {print substr(VER,2)}' ${addon}-${BRANCH}/CMakeLists.txt)
fi
[[ -z $PACKAGEVERSION ]] && echo "ERROR: could not determine version of $addon" && break
Please sign in to comment.
Something went wrong with that request. Please try again.