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

curl "https://sourceforge.net/projects/pidgin/files/Pidgin/" 2> /dev/null | \
  grep ' title="/Pidgin/[0-9.]\+/' | \
  sed 's|^.* title="/Pidgin/\([0-9.]\+\)/.*$|\1|' | \
  sort -n | \
  tail -n1

#  grep '<a href=.* title=\"/Pidgin/\([0-9.]\+\)/pidgin-\1\.tar\.gz:.*>' | \
#  sed 's|^.*<a href=.* title=\"/Pidgin/\([0-9.]\+\)/pidgin-\1\.tar\.gz:.*>.*$|\1|'