Skip to content
Snippets Groups Projects
Commit 724444fe authored by Erik von Reis's avatar Erik von Reis
Browse files

now finds IFO and SITE in non-realtime models

parent 4d996b8f
No related branches found
No related tags found
1 merge request!104install script now finds IFO and SITE in non-realtime models
......@@ -14,8 +14,8 @@ if ! test -e target/${system}epics/${system}epics; then
echo "Please make $system first." >&2
exit 1
fi
site=`grep site= target/${system}epics/${system}epics*.cmd | sed 's/.*site=\([a-z]*\).*/\1/g'`
ifo=`grep ifo= target/${system}epics/${system}epics*.cmd | head -1 | sed 's/.*ifo=\([a-zA-Z0-9]*\).*/\1/g'`
site=`grep -i -E 'site(=|\s)' target/${system}epics/${system}epics*.cmd | head -1 | sed 's/.*site\(=\|[ ]\)\([a-z]*\).*/\2/ig'`
ifo=`grep -i -E 'ifo(=|\s)' target/${system}epics/${system}epics*.cmd | head -1 | sed 's/.*ifo\(=\|[ ]\)\([a-zA-Z0-9]*\).*/\2/ig'`
if [ -z "$site" ] || [ -z "$ifo" ] ; then
echo "Could not determine site or ifo." >&2
exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment