diff options
Diffstat (limited to 'fixup-builtins')
-rwxr-xr-x | fixup-builtins | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/fixup-builtins b/fixup-builtins new file mode 100755 index 0000000000..49e861d2ac --- /dev/null +++ b/fixup-builtins @@ -0,0 +1,16 @@ +#!/bin/sh +while [ "$1" ] +do + old="$1" + new=$(echo "$1" | sed 's/git-/git /') + echo "Converting '$old' to '$new'" + git ls-files '*.sh' | while read file + do + sed "s/\\<$old\\>/$new/g" < $file > $file.new + chmod --reference=$file $file.new + mv $file.new $file + done + shift +done +git update-index --refresh >& /dev/null +exit 0 |