This commit is contained in:
ApfelTeeSaft
2026-05-29 23:07:24 +02:00
parent a512a4d522
commit e998d5e0f3
3681 changed files with 773501 additions and 0 deletions
+13
View File
@@ -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" text/**/*.{c,h} assets/**/*.c enhancements/*.patch lib/**/*.{c,h,s} asm/**/*.s bin/**/*.c data/*.c levels/**/*.{c,h} actors/**/*.{c,h} src/**/*.{c,h} include/**/*.{h,in} undefined_syms.txt | xargs sed -i "s/\b$1\b/$2/g"