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

# lilypond braucht guile-1.*

curl "ftp://ftp.gnu.org/gnu/guile/" 2> /dev/null | \
  awk '{print $9}' | \
  grep "^guile-1\.[0-9.-]*\.tar\.[gx]z\$" | \
  sed "s|^guile-\([0-9.-]*\)\.tar\.[gx]z\$|\1|" | \
  sort -V | \
  tail -n1