0
0
mirror of https://git.citron-emu.org/Citron/Citron.git synced 2025-02-19 01:15:45 +00:00
Citron/rename.sh
Zephyron b3facaa6bb
chore: update project references and add Citron copyright
- Replaced all references to the old project name with Citron.
- Added Citron copyright information alongside existing notices in all files.
2024-12-31 17:07:49 +10:00

18 lines
423 B
Bash
Executable File

#!/bin/bash
# Define old and new strings
old="citron"
new="citron"
# Find and rename directories first
find . -depth -type d -name "*${old}*" | while read -r dir; do
newdir=$(echo "$dir" | sed "s/${old}/${new}/g")
mv "$dir" "$newdir"
done
# Find and rename files
find . -depth -type f -name "*${old}*" | while read -r file; do
newfile=$(echo "$file" | sed "s/${old}/${new}/g")
mv "$file" "$newfile"
done