#!/bin/sh # # ############################################################ ############################################################ #----- # installation is made in the current directory #----------------------------------------------------------- if [ -d $TROOT/samples ] ; then cd $TROOT/samples #------------------ # search the samples files #----------------------------------------------------------------- echo "Collecting files to patch..." LIST=`find . -type f -exec grep -l /home/dt {} \; 2>/dev/null` #-------------------------------------------------------- # add the register information in the machine register file for i in $LIST do echo "Patching file $i" sed -e "s=/home/dt/logiscop/Logiscope_51=$TROOT=g" $i >.tmp mv .tmp $i done fi