Super Mario 64 OpenGL port for PC. Mirror of https://github.com/sm64pc/sm64pc https://github.com/sm64pc/sm64pc
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
372 B

  1. #!/bin/bash
  2. shopt -s globstar
  3. if [ "$#" -ne "2" ];
  4. then
  5. echo "usage: $0 old_name new_name"
  6. exit 1
  7. fi
  8. #echo "Replace $1 with $2?"
  9. #read
  10. grep -rl "$1" text/**/*.{c,h} assets/**/*.c enhancements/*.patch lib/**/*.{c,h,s} asm/**/*.s bin/**/*.c data/*.c levels/**/*.c actors/**/*.c src/**/*.{c,h} include/**/*.{h,in} undefined_syms.txt | xargs sed -i "s/\b$1\b/$2/g"