#!/bin/bash # usage: # checkCompiledModel # # makes a list of all front end codes that use # and lists the LastModifiedDate of , as well as # the SVN Id string # # useful for # - figuring out which model uses which library # - what version things are compiled against # # Author: Stefan Ballmer, 2013/10/20 # parameters model=$1 TEMPDIR=/tmp/tempDir_checkCompiledModel files=`ls /opt/rtcds/${site}/${ifo}/target/${ifo}*/src/sources.tar.gz` # make temporary directory mkdir $TEMPDIR cd $TEMPDIR for f in $files do g=`echo $f | sed 's/\// /g' | awk '{print $6}'` # echo checking $g mkdir $g tar -xf $f -C $g data=`find $g -name $model` for d in $data do lmod=`grep LastModifiedDate $d` svnstr=`grep "SVN \$Id" $d` echo $model \| $lmod \| $g \| $svnstr done done cd .. rm -rf $TEMPDIR