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

latestVersion="$(\
  curl "https://crux.nu/~tek/" 2> /dev/null | \
    tr "\"" "\n" | \
    grep "^mplayer-[0-9.-]*\.tar\..*\$" | \
    sed "s/^mplayer-\(.*\)\.tar\..*\$/\1/" | \
    sort -V | \
    tail -n1)"

echo -n "${latestVersion}"