find only numeric epics versions automatically

This commit is contained in:
2023-08-08 14:44:55 +02:00
parent 43bbae8b52
commit c1a1d12645
+2 -1
View File
@@ -184,10 +184,11 @@ then
EPICS_BASE=$(\ls -1vrd $EPICS/base-$BASE/bin/{${EPICS_HOST_ARCH},${EPICS_HOST_ARCH%_64}} 2>/dev/null | head -n1)
if [ -z "$EPICS_BASE" ]
then
# find highest (requested) EPICS version that supports our architecture (or its 32 bit version)
# find highest (requested) 3-part-numeric EPICS version that supports our architecture (or its 32 bit version)
# ignore all versions listed in ignore file
EPICS_BASE=$(eval \ls -1vrd $EPICS/base-$BASE*/bin/{${EPICS_HOST_ARCH},${EPICS_HOST_ARCH%_64}} 2>/dev/null \
$(test -f $EPICS/ignore && sed < $EPICS/ignore ':b;$!N;s/[[:space:]]/|/;tb;s/\./\\./g;s/.*/|grep -Ev \x27&\x27/g') \
| grep -E '/base-[0-9]+\.[0-9]+\.[0-9]+/' \
| head -n1)
fi
fi