summaryrefslogtreecommitdiff
path: root/manualPorts/dvdbackup/lastVersion.sh
blob: 1631ec0e4e12eb0bffa897ec9e20074f00510ece (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

curl -Ss 'https://dvdbackup.sourceforge.net/' | \
  sed '
    s@^.*<a href="http://downloads.sourceforge.net/dvdbackup/dvdbackup-\([0-9.]\+\).tar.xz">dvdbackup-\1.tar.xz</a>.*$@\1@
    t
    d
  ' | \
  sort -n | \
  tail -n1