blob: 828d0ad389f83440d9466adc311d7792583596bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
|