diff options
author | Ryan Pavlik <rpavlik@iastate.edu> | 2012-04-26 00:25:22 (GMT) |
---|---|---|
committer | Ryan Pavlik <rpavlik@iastate.edu> | 2012-05-07 17:56:43 (GMT) |
commit | 16e9c2f2afddfbde9fe25f851923e669d1ef77a3 (patch) | |
tree | 4538d2127dd6e743b46a7eadf4aaa0cd9784af01 | |
parent | 4c99e6364ffd403ad0f80551fc06ae468f283766 (diff) | |
download | mxe-16e9c2f2afddfbde9fe25f851923e669d1ef77a3.zip mxe-16e9c2f2afddfbde9fe25f851923e669d1ef77a3.tar.gz mxe-16e9c2f2afddfbde9fe25f851923e669d1ef77a3.tar.bz2 |
patch tool: fix so it gets the version from index.html now
-rwxr-xr-x | tools/patch-tool-mxe | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/patch-tool-mxe b/tools/patch-tool-mxe index c130fae..30580bc 100755 --- a/tools/patch-tool-mxe +++ b/tools/patch-tool-mxe @@ -16,8 +16,7 @@ gitsdir=~/gits # 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'/` |