Prepend __ to definition in given file.
authordrepper <drepper>
Fri, 8 May 1998 20:54:20 +0000 (20:54 +0000)
committerdrepper <drepper>
Fri, 8 May 1998 20:54:20 +0000 (20:54 +0000)
scripts/=__ify [new file with mode: 0755]

diff --git a/scripts/=__ify b/scripts/=__ify
new file mode 100755 (executable)
index 0000000..017d909
--- /dev/null
@@ -0,0 +1,12 @@
+for func in $*; do
+    for file in `find sysdeps -name "${func}.c"`;
+    do
+        script=/tmp/foo$$;
+        ( echo "%s/${func}/__&/g";
+        echo x )>$script ;
+        ex $file <$script ;
+        newfile=`echo $file | sed "s/${func}/__&/"`;
+        mv $file $newfile;
+        echo $newfile;
+    done
+done