mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-10-01 14:59:13 +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 <[email protected]> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2879 Reviewed-by: crueter <[email protected]> Reviewed-by: MaranBr <[email protected]> Co-authored-by: lizzie <[email protected]> Co-committed-by: lizzie <[email protected]>
This commit is contained in:
1 parent
ce0a299bdb
commit
fa718acfbe
25 files changed
+2
-73
No files matched your search
@@ -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