aboutsummaryrefslogtreecommitdiff
path: root/tools/unused-strings.sh
diff options
context:
space:
mode:
authorlizzie <lizzie@eden-emu.dev>2025-10-29 03:26:09 +0100
committercrueter <crueter@eden-emu.dev>2025-10-29 03:26:09 +0100
commitfa718acfbe0244892140e86f439d4965f99b77bc (patch)
tree8175989bb48bc665dcbc1ea47224cac1d9830ed8 /tools/unused-strings.sh
parentce0a299bdb7cec59d453f9c978c7affc71a8f4e8 (diff)
[tools, android/res] Remove unused strings, update unused-strings.sh to work on POSIX shells (#2879)
I had this pending but oh well, the double sed is fine for sh I believe Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2879 Reviewed-by: crueter <crueter@eden-emu.dev> Reviewed-by: MaranBr <maranbr@eden-emu.dev> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
Diffstat (limited to 'tools/unused-strings.sh')
-rwxr-xr-xtools/unused-strings.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/unused-strings.sh b/tools/unused-strings.sh
index ed8c5d9584..1165a203aa 100755
--- a/tools/unused-strings.sh
+++ b/tools/unused-strings.sh
@@ -26,7 +26,8 @@ done <"$TMP_DIR"/files
set -e
# filter out "@string/" and "R.string." from the strings to get the raw names
-sed 's/R.string.\|@string\///' "$USED" | sort -u | grep -v app_name_suffixed > "$FILTERED"
+sed 's/R.string.//' "$USED" | sed 's/@string\///' \
+ | sort -u | grep -v app_name_suffixed > "$FILTERED"
# now we run a sort + uniq -u pass - this basically removes all strings that are
# present in BOTH the used strings list AND strings.xml