[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>
This commit is contained in:
lizzie
2025-10-29 03:26:09 +01:00
committed by crueter
parent ce0a299bdb
commit fa718acfbe
25 changed files with 2 additions and 73 deletions
+2 -1
View File
@@ -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