Archived
1
0
Fork 0
This repository has been archived on 2025-03-06. You can view files and clone it, but cannot push or open issues or pull requests.
sm64/rename_sym.sh
2019-08-24 22:26:05 -04:00

13 lines
351 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" assets/*.s enhancements/**.{c,h,s} lib/**/*.{c,h} asm/**/*.s bin/*.s data/*.s levels/**/*.s actors/**/*.s src/**/*.{c,h} include/**/*.{h,in} undefined_syms.txt | xargs sed -i "s/\b$1\b/$2/g"