mirror of https://github.com/n64decomp/007.git
12 lines
329 B
Bash
Executable File
12 lines
329 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "$#" -ne "2" ];
|
|
then
|
|
echo "usage: $0 old_name new_name"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Replace $1 with $2?"
|
|
read
|
|
grep -rl "$1" asm/*.s asm/code/*.s asm/libultra/*.s asm/game/*.s asm/rarezip/*.s src/*.c src/*.h include/*.h undefined_syms.txt sym_bss.txt notes/ge007.u.yaml include/globals.inc | xargs sed -i "s/\b$1\b/$2/g"
|