From 509aefefba728483d7f82b44145c0189e15562ed Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins <jameson.rollins@ligo.org> Date: Wed, 20 May 2020 11:34:00 -0700 Subject: [PATCH] cli: support RCG_BUILD_ROOT env var for build root This allows for overriding the base directory where build directories are created, as well as the specific build directory (RCG_BUILDD). --- support/bin/rtcds.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/support/bin/rtcds.in b/support/bin/rtcds.in index 21547cd07..7ddcd239f 100755 --- a/support/bin/rtcds.in +++ b/support/bin/rtcds.in @@ -22,7 +22,8 @@ IFO=${IFO^^*} ifo=${IFO,,*} RCG_SRC=${RCG_SRC:-/usr/share/advligorts/src} -RCG_BUILDD=${RCG_BUILDD:-/var/cache/advligorts/rcg-$RTS_VERSION} +RCG_BUILD_ROOT=${RCG_BUILD_ROOT:-/var/cache/advligorts} +RCG_BUILDD=${RCG_BUILDD:-$RCG_BUILT_ROOT/rcg-$RTS_VERSION} # FIXME: the RCG hard-codes /opt/rtcds as the root RCG_TARGET=/opt/rtcds/${site}/${ifo} @@ -35,7 +36,7 @@ CDS_IFO_SRC=${CDS_IFO_SRC:-$CDS_SRC} RCG_LIB_PATH=$RCG_LIB_PATH:${RCG_SRC}/src/epics/simLink/:${RCG_SRC}/src/epics/simLink/lib USER_VARS=(SITE IFO RCG_LIB_PATH) -LIST_VARS=(RTS_VERSION ${USER_VARS[@]} RCG_SRC RCG_BUILDD RCG_TARGET) +LIST_VARS=(RTS_VERSION ${USER_VARS[@]} RCG_SRC RCG_BUILD_ROOT RCG_BUILDD RCG_TARGET) EXPORT_VARS=(${USER_VARS[@]} site ifo CDS_SRC CDS_IFO_SRC) # set the umask to ensure that all files and directories are made -- GitLab