changeset 2589:0f4ffb24a0ec

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 aca400461f6d
children 35e225e1b841
files tools/patch-tool-mxe
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tools/patch-tool-mxe	Wed Jun 13 13:58:13 2012 +0200
+++ 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'/`