Commit 38894208 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play openide: get latest stable version from the main page

parent a861f2ee
...@@ -19,7 +19,12 @@ case "$arch" in ...@@ -19,7 +19,12 @@ case "$arch" in
esac esac
if [ "$VERSION" = "*" ]; then if [ "$VERSION" = "*" ]; then
VERSION=$(eget -q -O- https://download.openide.ru/ | grep -B1 "openIDE.*tar\.gz" | grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+" | tail -n1) # stable version
VERSION="$(eget -q -O- https://openide.ru/download/ | grep "Сборка:" | sed -e "s|.*Сборка:</span>[[:space:]]||" -e "s|</p>.*||")"
if [ -z "$VERSION" ] ; then
# latest may be unstable
VERSION="$(eget -q -O- https://download.openide.ru/ | grep -B1 "openIDE.*tar\.gz" | grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+" | tail -n1)"
fi
fi fi
PKGURL="https://download.openide.ru/$VERSION/openIDE-$VERSION${arch}.tar.gz" PKGURL="https://download.openide.ru/$VERSION/openIDE-$VERSION${arch}.tar.gz"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment