#!/bin/sh

#
# simple shell script to globally change strings in M2 sources
#

for i in *.def *.mod */*.[ch] */*.def */*.mod ; do
    echo -n "$i "
    sed  -e "s/ValueAddr/LeftValue/" < $i > t
    sed  -e "s/OffsetAddr/RightValue/" < t > t1
    sed  -e "s/ImmediateAddr/ImmediateValue/" < t1 > t2
    sed  -e "s/NoAddr/NoValue/" < t2 > $i
done
echo " "