summaryrefslogtreecommitdiff
path: root/rename.sh
diff options
context:
space:
mode:
authorZephyron <zephyron@citron-emu.org>2024-12-31 16:19:25 +1000
committerZephyron <zephyron@citron-emu.org>2024-12-31 16:19:25 +1000
commit9427e27e24a7135880ee2881c3c44988e174b41a (patch)
tree83f0062a35be144f6b162eaa823c5b3c7620146e /rename.sh
parentb35ae725d20960411e8588b11c12a2d55f86c9d0 (diff)
chore: update project branding to citron
Diffstat (limited to 'rename.sh')
-rwxr-xr-xrename.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/rename.sh b/rename.sh
new file mode 100755
index 000000000..84906842d
--- /dev/null
+++ b/rename.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# Define old and new strings
+old="yuzu"
+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