#!/bin/sh
-for MA in `find -name "*.ma"`; do
- echo ${MA}; sed "s!$1!$2!g" ${MA} > ${MA}.new
- if diff ${MA} ${MA}.new > /dev/null;
- then rm -f ${MA}.new;
- else mv -f ${MA} ${MA}.old; mv -f ${MA}.new ${MA};
+for SRC in `find grond_2 static_2 basic_2 apps_2 -name "*.ma" -or -name "*.tbl"`; do
+ sed "s!$1!$2!g" ${SRC} > ${SRC}.new
+ if [ ! -s ${SRC}.new ] || diff ${SRC} ${SRC}.new > /dev/null;
+ then rm -f ${SRC}.new;
+ else echo ${SRC}; mv -f ${SRC} ${SRC}.old; mv -f ${SRC}.new ${SRC};
fi
done
-unset MA
+unset SRC