Skip to content
Snippets Groups Projects
Commit 411d9963 authored by Alexander Ivanov's avatar Alexander Ivanov
Browse files

When a filter files is (re)installed, its name will have "install" string in it

in the filter_archive subdirectory. This is useful to distinguish filter files
produced by the installation versus files produced by filer coeff reloads.


git-svn-id: https://redoubt.ligo-wa.caltech.edu/svn/advLigoRTS/trunk@3081 6dcd42c9-f523-4c6d-aada-af552506706e
parent 7ffdc429
No related branches found
No related tags found
No related merge requests found
......@@ -30,10 +30,10 @@ echo Installing system=$system site=$site ifo=$ifo,$lower_ifo
echo Installing /opt/rtcds/$site/${lower_ifo}/chans/${upper_system}.txt
/bin/mkdir -p /opt/rtcds/$site/${lower_ifo}/chans/filter_archive/$system
if test -e /opt/rtcds/$site/${lower_ifo}/chans/${upper_system}.txt; then
/bin/mv -f /opt/rtcds/$site/${lower_ifo}/chans/${upper_system}.txt /opt/rtcds/$site/${lower_ifo}/chans/filter_archive/$system/${upper_system}_${cur_date}.txt || exit 1
/bin/cp /opt/rtcds/$site/${lower_ifo}/chans/${upper_system}.txt /opt/rtcds/$site/${lower_ifo}/chans/filter_archive/$system/${upper_system}_${cur_date}_install.txt || exit 1
head -4 build/${system}epics/config/${ifo}${upper_system}.txt > /opt/rtcds/$site/${lower_ifo}/chans/${upper_system}.txt
/bin/grep '^# MODULES' build/${system}epics/config/${ifo}${upper_system}.txt >> /opt/rtcds/$site/${lower_ifo}/chans/${upper_system}.txt
tail -n +5 /opt/rtcds/$site/${lower_ifo}/chans/filter_archive/$system/${upper_system}_${cur_date}.txt | grep -v '^# MODULES' >> /opt/rtcds/$site/${lower_ifo}/chans/${upper_system}.txt
tail -n +5 /opt/rtcds/$site/${lower_ifo}/chans/filter_archive/$system/${upper_system}_${cur_date}_install.txt | grep -v '^# MODULES' >> /opt/rtcds/$site/${lower_ifo}/chans/${upper_system}.txt
else
/bin/cp -p build/${system}epics/config/${ifo}${upper_system}.txt /opt/rtcds/$site/${lower_ifo}/chans/${upper_system}.txt
fi
......
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