mirror of
https://github.com/zeldaret/mm.git
synced 2026-06-07 03:47:43 -04:00
Add rename script
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
shopt -s globstar
|
||||
|
||||
if [ "$#" -ne "2" ];
|
||||
then
|
||||
echo "usage: $0 old_name new_name"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
#echo "Replace $1 with $2?"
|
||||
#read
|
||||
grep -rl "$1" asm/**/*.asm src/**/*.{c,h} include/**/*.h tables/*.py undef.txt | xargs sed -i "s/\b$1\b/$2/g"
|
||||
Reference in New Issue
Block a user