blob: 8e0879cb3ae7985343dff2304a5028cf3b15f8be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
latestVersion="$(\
curl "http://lilypond.org/downloads/sources/" 2> /dev/null | \
tr "\"/" "\n\n" | \
grep "^v[[:digit:]]\+\.[[:digit:]]\+\$" | \
sed "s/^v//" | \
sort -V | \
tail -n1)"
curl "http://lilypond.org/downloads/sources/v${latestVersion}/" 2> /dev/null | \
tr "\"/" "\n\n" | \
grep "^lilypond-${latestVersion}\.[[:digit:]]\+\.tar\.gz\$" | \
sed "s/^lilypond-\([[:digit:]]\(\.[[:digit:]]\+\)*\)\.tar\.gz\$/\1/" | \
sort -V | \
tail -n1
|