mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-21 15:28:19 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user