patch tool: fix so it gets the version from index.html now

This commit is contained in:
Ryan Pavlik 2012-04-25 19:25:22 -05:00
parent 4c99e6364f
commit 16e9c2f2af
1 changed files with 1 additions and 2 deletions

View File

@ -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'/`