summaryrefslogtreecommitdiff
path: root/portsToCome/libvpx/lastVersion.sh
blob: 1c457f95aaf009d51dd1a2534feb98c62288ed5b (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

latestVersion="$(\
  curl "http://downloads.webmproject.org/releases/webm/index.html" 2> /dev/null | \
  tr "\"" "\n" | \
  grep "^//storage.googleapis.com/downloads.webmproject.org/releases/webm/libvpx-v\?[0-9.-]*\.tar\.bz2\$" | \
  sed "s|^//storage.googleapis.com/downloads.webmproject.org/releases/webm/libvpx-v\?\([0-9.-]*\)\.tar\.bz2\$|\1|" | \
  sort -V | \
  tail -n1)"

echo -n "${latestVersion}"