diff options
author | Erich Eckner <git@eckner.net> | 2016-11-22 10:54:18 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-11-22 10:54:18 +0100 |
commit | 2578371c153340c0bc555bc9c3c82ef1e4bca368 (patch) | |
tree | ddac61dc5fbdd1366dba3e32052b51cb5ebbee1f | |
parent | 7e39f2c6a460c46a3ae7787746c688cd10b28ab4 (diff) | |
download | archlinuxewe.git.save-2578371c153340c0bc555bc9c3c82ef1e4bca368.tar.xz |
checkVersions kann jetzt auch lilypond-devel
-rwxr-xr-x | checkVersions | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/checkVersions b/checkVersions index 9d1aa6bd..4502a398 100755 --- a/checkVersions +++ b/checkVersions @@ -413,6 +413,31 @@ then )" [ -n "${remVer}" ] && break done + elif echo "${src}" | \ + grep -q '^http://download\.linuxaudio\.org/lilypond/sources/' + then + remVerz="$( + echo "${src}" | \ + sed 's|[^/]\+/[^/]\+$||' + )" + for mainVer in $( + curl "${remVerz}" 2> /dev/null | \ + tr '"' '\n' | \ + grep '^v[0-9.]\+/$' | \ + sed 's|^v\([0-9.]\+\)/$|\1|' | \ + sort -Vr + ) + do + remVer="$( + curl "${remVerz}v${mainVer}/" 2> /dev/null | \ + tr '"' '\n' | \ + grep '^lilypond-[0-9.]\+\.tar\.\(gz\|bz2\|xz\)$' | \ + sed 's@^lilypond-\([0-9.]\+\)\.tar\.\(gz\|bz2\|xz\)$@\1@' | \ + sort -V | \ + tail -n1 + )" + [ -n "${remVer}" ] && break + done else continue fi |