From c1a1d126453fef48315a98b1ebb7620e527a7805 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Tue, 8 Aug 2023 14:44:55 +0200 Subject: [PATCH] find only numeric epics versions automatically --- iocsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iocsh b/iocsh index 2975fa9..5e64815 100755 --- a/iocsh +++ b/iocsh @@ -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