build/i18n-merge-master: ignore apps deleted in master
authorHannu Nyman <hannu.nyman@iki.fi>
Fri, 15 May 2020 13:46:23 +0000 (16:46 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Fri, 15 May 2020 13:46:23 +0000 (16:46 +0300)
commitda7c3d920274f50f9872103f9aa4cf2a283b3d11
tree71e5ae0e1fd84c8fb8cd73bfd9c57c6ff7994536
parenta7d1e257aa6c3582b168f2e3c4969a5328574152
build/i18n-merge-master: ignore apps deleted in master

Refine the code to ignore apps that have been deleted from master
but still exist in release branches. E.g. luci-app-samba

Previously the unhandled git error from non-existing master
mangled the .po files in the release branch: the 18n header was
removed and all non-ASCII chars were deleted from translation.

Fix this by processing only those files where 'git show' succeeds.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit e4baee8d25 in openwrt-19.07)
build/i18n-merge-master.pl