changeset 2485:119ae345cd33

patch tool: fix so it gets the version from index.html now
author Ryan Pavlik <rpavlik@iastate.edu>
date Wed, 25 Apr 2012 19:25:22 -0500
parents 9a0fd1a69bbe
children a866a8b8beab
files tools/patch-tool-mxe
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tools/patch-tool-mxe	Thu May 03 07:06:55 2012 +1000
+++ b/tools/patch-tool-mxe	Wed Apr 25 19:25:22 2012 -0500
@@ -16,8 +16,7 @@
 # John Doe <John Doe@acme.org>
 author=`git var GIT_AUTHOR_IDENT | sed 's/^\(.* [<].*[>]\).*$/\1/'`
 
-pkg_version=`grep '^$(PKG)_VERSION' $mxedir/src/$pkg.mk  | \
-  sed 's/.*:= \(.*\)/\1/'`
+pkg_version=$(sed -n "s/^.* id=\"${pkg}-version\">\([^<]*\)<.*$/\1/p" "${mxedir}/index.html")
 
 pkg_short_version=`echo $pkg_version | sed s/'\(.*\)\.[^.]*$'/'\1'/`