diff options
author | Ryan Pavlik <rpavlik@iastate.edu> | 2012-04-26 00:25:22 (GMT) |
---|---|---|
committer | Mark Brand <mabrand@mabrand.nl> | 2012-06-13 16:22:32 (GMT) |
commit | 519657fbf9ed6fd1ef3b6f496d1e985121540c19 (patch) | |
tree | b849acedb6fd911ebaca4c0a4765b29508e9d317 /tools/patch-tool-mxe | |
parent | 5290b35d7bc0bda9427e3052ecafe63a3ba981d0 (diff) | |
download | mxe-519657fbf9ed6fd1ef3b6f496d1e985121540c19.zip mxe-519657fbf9ed6fd1ef3b6f496d1e985121540c19.tar.gz mxe-519657fbf9ed6fd1ef3b6f496d1e985121540c19.tar.bz2 |
patch tool: fix so it gets the version from index.html now
Diffstat (limited to 'tools/patch-tool-mxe')
-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'/` |