diff options
Diffstat (limited to 'manualPorts/eagle/lastVersion.sh')
-rwxr-xr-x | manualPorts/eagle/lastVersion.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/manualPorts/eagle/lastVersion.sh b/manualPorts/eagle/lastVersion.sh new file mode 100755 index 0000000..828d0ad --- /dev/null +++ b/manualPorts/eagle/lastVersion.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +mainVer="$( + curl 'ftp://ftp.cadsoft.de/eagle/program/' 2> /dev/null | \ + grep '^d' | \ + sed 's|^\(\S\+\s\+\)\{8\}||' | \ + sort -V | \ + tail -n1 + )" + +curl "ftp://ftp.cadsoft.de/eagle/program/${mainVer}/" 2> /dev/null | \ + sed 's|^\(\S\+\s\+\)\{8\}||' | \ + grep '^eagle-lin64-[0-9.]\+\.run$' | \ + sed 's|^eagle-lin64-\([0-9.]\+\)\.run$|\1|' | \ + sort -V | \ + tail -n1 |