From 3773c69f01c5d2e7c695cd31b8000742c589bef8 Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Wed, 26 Aug 2015 12:19:58 +0200 Subject: Adding simple script to remove language files from core --- l10n/rm-old.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 l10n/rm-old.sh (limited to 'l10n/rm-old.sh') diff --git a/l10n/rm-old.sh b/l10n/rm-old.sh new file mode 100644 index 00000000000..30e4509db25 --- /dev/null +++ b/l10n/rm-old.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +lang=(ach ady af_ZA ak am_ET ar ast az bal be bg_BG bn_BD bn_IN bs ca cs_CZ cy_GB da de de_AT de_DE el en_GB en@pirate eo es es_AR es_CL es_MX et_EE eu fa fi_FI fil fr fy_NL gl gu he hi hr hu_HU hy ia id io is it ja jv ka_GE km kn ko ku_IQ la lb lo lt_LT lv mg mk ml ml_IN mn mr ms_MY mt_MT my_MM nb_NO nds ne nl nn_NO nqo oc or_IN pa pl pt_BR pt_PT ro ru si_LK sk_SK sl sq sr sr@latin su sv sw_KE ta_IN ta_LK te tg_TJ th_TH tl_PH tr tzl tzm ug uk ur_PK uz vi yo zh_CN zh_HK zh_TW) + +ignore="" + +for fignore in "${lang[@]}"; do + ignore=${ignore}"-not -name ${fignore}.js -not -name ${fignore}.json " +done + + +find ../lib/l10n -type f $ignore -delete +find ../settings/l10n -type f $ignore -delete +find ../core/l10n -type f $ignore -delete +find ../apps/files/l10n -type f $ignore -delete +find ../apps/encryption/l10n -type f $ignore -delete +find ../apps/files_external/l10n -type f $ignore -delete +find ../apps/files_sharing/l10n -type f $ignore -delete +find ../apps/files_trashbin/l10n -type f $ignore -delete +find ../apps/files_versions/l10n -type f $ignore -delete +find ../apps/user_ldap/l10n -type f $ignore -delete +find ../apps/user_webdavauth/l10n -type f $ignore -delete + + -- cgit v1.2.3