Mon Dec 18 13:40:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
[glibc.git] / =__ify
blob017d909a1a8223fb7d782ecfbca919762d26e5d7
1 for func in $*; do
2     for file in `find sysdeps -name "${func}.c"`;
3     do
4         script=/tmp/foo$$;
5         ( echo "%s/${func}/__&/g";
6         echo x )>$script ;
7         ex $file <$script ;
8         newfile=`echo $file | sed "s/${func}/__&/"`;
9         mv $file $newfile;
10         echo $newfile;
11     done
12 done