mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-24 13:05:12 +00:00
75bb9b7912
* Refresh 13 Co-authored-by: n64 <n64>
13 lines
376 B
Bash
Executable file
13 lines
376 B
Bash
Executable file
#!/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" text/**/*.{c,h} assets/**/*.c enhancements/*.patch lib/**/*.{c,h,s} asm/**/*.s bin/**/*.c data/*.c levels/**/*.{c,h} actors/**/*.c src/**/*.{c,h} include/**/*.{h,in} undefined_syms.txt | xargs sed -i "s/\b$1\b/$2/g"
|