rm-old.sh 1.2 KB

123456789101112131415161718192021222324
  1. #!/usr/bin/env bash
  2. 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)
  3. ignore=""
  4. for fignore in "${lang[@]}"; do
  5. ignore=${ignore}"-not -name ${fignore}.js -not -name ${fignore}.json "
  6. done
  7. find ../lib/l10n -type f $ignore -delete
  8. find ../settings/l10n -type f $ignore -delete
  9. find ../core/l10n -type f $ignore -delete
  10. find ../apps/files/l10n -type f $ignore -delete
  11. find ../apps/encryption/l10n -type f $ignore -delete
  12. find ../apps/files_external/l10n -type f $ignore -delete
  13. find ../apps/files_sharing/l10n -type f $ignore -delete
  14. find ../apps/files_trashbin/l10n -type f $ignore -delete
  15. find ../apps/files_versions/l10n -type f $ignore -delete
  16. find ../apps/user_ldap/l10n -type f $ignore -delete
  17. find ../apps/user_webdavauth/l10n -type f $ignore -delete