#!/bin/bash # ONLYOFFICE Desktop Editors # build script of xzm module for Porteus # Version 2024-11-30 # Copyright 2023, Blaze, Dankov, Russia # All rights reserved. # # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: # # 1. Redistributions of this script must retain the above copyright # notice, this list of conditions and the following disclaimer. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Root check if [ `whoami` != "root" ]; then echo -e "\nOnly root can run this.\n" exit 1 fi PRGNAM=${PRGNAM:-onlyoffice-desktopeditors} VERSION=$(lynx -head -dump "https://github.com/ONLYOFFICE/DesktopEditors/releases/latest" | grep Location | grep -o "[0-9].*$") #VERSION=$(curl -sf "https://www.onlyoffice.com/download-desktop.aspx" | grep -m 1 -A 6 ubuntu | grep "Version" | awk '{print$2}' | tr -d '\r') SOURCE=$(echo https://github.com/ONLYOFFICE/DesktopEditors/releases/download/v${VERSION}/${PRGNAM}_amd64.deb) HELP=$(echo https://github.com/ONLYOFFICE/DesktopEditors/releases/download/v${VERSION}/${PRGNAM}-help_all.deb) BOLD=${BOLD:-"\e[1m"} CYAN=${CYAN:-"\e[96m"} GREEN=${GREEN:-"\e[92m"} RED=${RED:-"\e[31m"} RESET=${RESET:-"\e[0m"} CWD=$(pwd) TMPDIR=/tmp/portch PKG=$TMPDIR/package-$PRGNAM PKGINFO=$PKG/var/lib/pkgtools/packages OUTPUT=${OUTPUT:-/tmp} ARCH=$( uname -m ) cleanup(){ [ -d $TMPDIR ] && rm -rf $TMPDIR [ -d $PKG ] && rm -rf $PKG exit } # Check if ONLYOFFICE installed in the system if [[ -f "/opt/onlyoffice/desktopeditors/DesktopEditors" ]]; then echo -e " ${BOLD}Checking if ONLYOFFICE Desktop Editors is installed ...${RESET}" echo -e "[${GREEN}${BOLD}OK${RESET}] ONLYOFFICE Desktop Editors is installed" echo -ne "[${GREEN}${BOLD}OK${RESET}] Your "; sudo -u guest /opt/onlyoffice/desktopeditors/DesktopEditors --version fi read -p "$(echo -e Would you like to download ONLYOFFICE Desktop Editors ${GREEN}${BOLD}$VERSION${RESET} ${ARCH} xzm module? [y/n])" -n 1 -r -s && echo if [[ $REPLY =~ ^[Yy]$ ]]; then echo "We continue the execution of the $0 script" &>/dev/null else exit 0 fi rm -rf $PKG mkdir -p $TMPDIR $PKG $OUTPUT cd $PKG # Download ONLYOFFICE Desktop Editors echo -e "\nDownloading ${CYAN}${BOLD}ONLYOFFICE Desktop Editors ${VERSION}${RESET}" wget -q --show-progress "$SOURCE" #wget -q --show-progress "$HELP" # Check that we have an archive in TMPDIR if [ ! -f ${PRGNAM}_amd64.deb ]; then echo -e "\n${RED}${BOLD}Download seems to have failed, Exiting...${RESET}" cleanup fi # Unpack packages ar p onlyoffice-desktopeditors_amd64.deb data.tar.xz | tar xvJ #ar p onlyoffice-desktopeditors-help_all.deb data.tar.xz | tar xvJ #for s in 16 24 32 48 64 128 256; do # mkdir -p $PKG/usr/share/icons/hicolor/${s}x${s}/apps # install -m 0644 -o root -g root $PKG/opt/onlyoffice/desktopeditors/asc-de-${s}.png \ # $PKG/usr/share/icons/hicolor/${s}x${s}/apps/asc-de.png # sed -i 's|Icon=onlyoffice-desktopeditors|Icon=asc-de.png|' \ # $PKG/usr/share/applications/onlyoffice-desktopeditors.desktop #done # Remove unnecessary stuff rm -f $PKG/*.deb rm -f $PKG/opt/onlyoffice/desktopeditors/*.png rm -f $PKG/opt/onlyoffice/desktopeditors/{3DPARTYLICENSE,LICENSE.htm,*.png} rm -rf $PKG/opt/onlyoffice/desktopeditors/app rm -rf $PKG/opt/onlyoffice/desktopeditors/editors/sdkjs-plugins/*/vendor/drawio/webapp/math/.github rm -rf $PKG/opt/onlyoffice/desktopeditors/fonts/LICENSE rm -rf $PKG/usr/share/doc find $PKG -type f -iname "*.md" -delete find $PKG -type f -iname "README*" -delete find $PKG -iname "*LICENSE*" -delete find $PKG -type f -iname "3rd-Party.txt" -delete find $PKG -type f -iname "OpenSymbol.txt" -delete clear # Remove plugins #read -p "$(echo -e "1) Do you want to remove plugins? [y/n]")" -n 1 -r -s && echo #if [[ $REPLY =~ ^[Yy]$ ]]; then # rm -rf $PKG/opt/onlyoffice/desktopeditors/editors/sdkjs-plugins # else # echo "We continue the execution of the $0 script" &>/dev/null #fi # Remove PDF editor read -p "$(echo -e "\n1) Do you want to remove PDF editor? [y/n]")" -n 1 -r -s && echo if [[ $REPLY =~ ^[Yy]$ ]]; then rm -rf $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor else echo "We continue the execution of the $0 script" &>/dev/null fi # Choose locales echo -e "\n2) Choose a locale from the list:\n" echo '1) am | 12) es-419 | 23) hu | 34) nb | 45) sw | 2) ar | 13) es | 24) id | 35) nl | 46) ta | 3) bg | 14) et | 25) it | 36) pl | 47) te | 4) bn | 15) fa | 26) ja | 37) pt-BR | 48) th | 5) ca | 16) fi | 27) kn | 38) pt-PT | 49) tr | 6) cs | 17) fil | 28) ko | 39) ro | 50) uk | 7) da | 18) fr | 29) lt | 40) ru | 51) vi | 8) de | 19) gu | 30) lv | 41) sk | 52) zh-CN | 9) el | 20) he | 31) ml | 42) sl | 53) zh-TW | 10) en-GB | 21) hi | 32) mr | 43) sr | 11) en-US | 22) hr | 33) ms | 44) sv |' | column -ts $'\|' read -p "$(echo -e "\n${BOLD}All other locales will be removed.${RESET}\n\n#? ")" if [[ $REPLY = 1 ]]; then OOLANG=am for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'am.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 2 ]]; then OOLANG=ar for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'ar.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'AR' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 3 ]]; then OOLANG=bg for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'bg.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'bg_BG' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'bg.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'bg.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'bg.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'bg.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'bg.json' ! -name 'bg_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 4 ]]; then OOLANG=bn for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'bn.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 5 ]]; then OOLANG=ca for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'ca.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'ca_ES' ! -name 'ca_ES_valencia' ! -name 'es_ES' ! -name 'eu_ES' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'ca.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'es'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'ca.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'es'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'ca.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'es'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'ca.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'ca.json' ! -name 'ca_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'es'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 6 ]]; then OOLANG=cs for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'cs.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'cs_CZ' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/sdkjs-plugins/*/translations -type f ! -name 'cs-CS.json' ! -name 'cs-CZ.json' ! -name 'langs.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'cs.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'cs.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'cs.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'cs.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'cs.json' ! -name 'cs_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 7 ]]; then OOLANG=da for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'da.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'da_DK' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'da.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'da.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'da.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'da.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'da.json' ! -name 'da_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 8 ]]; then OOLANG=de for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'de.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'de_AT' ! -name 'de_CH' ! -name 'de_DE' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'DE' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/sdkjs-plugins/*/translations -type f ! -name 'de-DE.json' ! -name 'langs.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'de.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'de'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'de.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'de'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'de.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'de'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'de.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'de.json' ! -name 'de_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'de'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 9 ]]; then OOLANG=el for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'el.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'el_GR' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'el.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'el.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'el.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'el.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'el.json' ! -name 'el_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 10 ]]; then OOLANG=en-GB for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/forms/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/sdkjs-plugins/*/vendor/drawio/webapp/math/es5/sre/mathmaps -type f ! -name 'base.json' ! -name 'en.json' ! -name 'nemeth.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/sdkjs-plugins/*/vendor/drawio/webapp/resources -type f ! -name 'dia.txt' ! -name 'dia_i18n.txt'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 11 ]]; then OOLANG=en-US for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/forms/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/sdkjs-plugins/*/vendor/drawio/webapp/math/es5/sre/mathmaps -type f ! -name 'base.json' ! -name 'en.json' ! -name 'nemeth.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/sdkjs-plugins/*/vendor/drawio/webapp/resources -type f ! -name 'dia.txt' ! -name 'dia_i18n.txt'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 12 ]]; then OOLANG=es-419 for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'es-419.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'es_ES' ! -name 'eu_ES' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'ES' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'es.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'es'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'es.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'es'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'es.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'es'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'es.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'es.json' ! -name 'es_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'es'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 13 ]]; then OOLANG=es for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'es.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'es_ES' ! -name 'eu_ES' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'ES' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/sdkjs-plugins/*/translations -type f ! -name 'es-ES.json' ! -name 'langs.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'es.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'es'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'es.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'es'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'es.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'es'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'es.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'es.json' ! -name 'es_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'es'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 14 ]]; then OOLANG=et for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'et.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 15 ]]; then OOLANG=fa for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'fa.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 16 ]]; then OOLANG=fi for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'fi.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'fi.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'fi.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'fi.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'fi.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'fi.json' ! -name 'fi_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 17 ]]; then OOLANG=fil for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'fil.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 18 ]]; then OOLANG=fr for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'fr.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'fr_FR' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'FR' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/sdkjs-plugins/*/translations -type f ! -name 'fr-FR.json' ! -name 'langs.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'fr.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'fr'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'fr.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'fr'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'fr.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'fr'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'fr.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'fr.json' ! -name 'fr_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'fr'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 19 ]]; then OOLANG=gu for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'gu.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 20 ]]; then OOLANG=he for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'he.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 21 ]]; then OOLANG=hi for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'hi.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 22 ]]; then OOLANG=hr for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'hr.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'hr_HR' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 23 ]]; then OOLANG=hu for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'hu.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'hu_HU' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'hu.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'hu.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'hu.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'hu.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'hu.json' ! -name 'hu_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 24 ]]; then OOLANG=id for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'id.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'id_ID' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'id.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'id.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'id.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'id.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'id.json' ! -name 'id_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 25 ]]; then OOLANG=it for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'it.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'it_IT' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'IT' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'it.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'it'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'it.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'it'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'it.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'it'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'it.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'it.json' ! -name 'it_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'it'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 26 ]]; then OOLANG=ja for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'ja.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'JA' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'ja.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'ja.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'ja.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'ja.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'ja.json' ! -name 'ja_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 27 ]]; then OOLANG=kn for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'kn.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 28 ]]; then OOLANG=ko for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'ko.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'ko_KR' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'ko.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'ko.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'ko.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'ko.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'ko.json' ! -name 'ko_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 29 ]]; then OOLANG=lt for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'lt.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'lt_LT' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 30 ]]; then OOLANG=lv for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'lv.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'lv_LV' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'lv.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'lv.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'lv.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'lv.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'lv.json' ! -name 'lv_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 31 ]]; then OOLANG=ml for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'ml.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 32 ]]; then OOLANG=mr for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'mr.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 33 ]]; then OOLANG=ms for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'ms.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'ms.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 34 ]]; then OOLANG=nb for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'nb.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'nb_NO' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'nb.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'nb.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'nb.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'nb.json' ! -name 'nb_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 35 ]]; then OOLANG=nl for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'nl.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'nl_NL' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'nl.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'nl.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'nl.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'nl.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'nl.json' ! -name 'nl_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 36 ]]; then OOLANG=pl for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'pl.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'pl_PL' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'pl.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'pl.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'pl.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'pl.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'pl.json' ! -name 'pl_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 37 ]]; then OOLANG=pt-BR for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'pt-BR.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'pt_BR' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'PT' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'pt.json' ! -name 'pt-pt.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'pt-br.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'pt-br.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'pt-br.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'pt-br.json' ! -name 'pt-br_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 38 ]]; then OOLANG=pt-PT for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'pt-PT.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'pt_PT' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'PT' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'pt.json' ! -name 'pt-pt.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'pt.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'pt.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'pt.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'pt.json' ! -name 'pt_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 39 ]]; then OOLANG=ro for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'ro.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'ro_RO' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'ro.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'ro.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'ro.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'ro.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'ro.json' ! -name 'ro_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 40 ]]; then OOLANG=ru for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'ru.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'ru_RU' ! -name 'uk_UA' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'ru-RU' ! -name 'uk-UA' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'RU' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/forms/locale -type f ! -name 'ru.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/sdkjs-plugins/*/translations -type f ! -name 'ru-RU.json' ! -name 'langs.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/sdkjs-plugins/*/store/translations -type f ! -name 'ru-RU.json' ! -name 'langs.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/sdkjs-plugins/*/vendor/drawio/webapp/math/es5/sre/mathmaps -type f ! -name 'base.json' ! -name 'en.json' ! -name 'nemeth.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/sdkjs-plugins/*/vendor/drawio/webapp/resources -type f ! -name 'dia.txt' ! -name 'dia_i18n.txt' ! -name 'dia_ru.txt'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'ru.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'ru'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'ru.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'ru'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'ru.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'ru'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'ru.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'ru.json' ! -name 'ru_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'ru'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 41 ]]; then OOLANG=sk for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'sk.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'sk_SK' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'sk.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'sk.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'sk.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'sk.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'sk.json' ! -name 'sk_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 42 ]]; then OOLANG=sl for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'sl.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'sl_SI' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'sl.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'sl.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'sl.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'sl.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'sl.json' ! -name 'sl_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 43 ]]; then OOLANG=sr for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'sr.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'sr_Latn_RS' ! -name 'sr_Cyrl_RS' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 44 ]]; then OOLANG=sv for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'sv.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'sv_SE' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'sv.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'sv.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'sv.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'sv.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'sv.json' ! -name 'sv_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 45 ]]; then OOLANG=sw for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'sw.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 46 ]]; then OOLANG=ta for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'ta.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 47 ]]; then OOLANG=te for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'te.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 48 ]]; then OOLANG=th for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'th.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 49 ]]; then OOLANG=tr for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'tr.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'tr_TR' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'tr.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'tr.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'tr.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'tr.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'tr.json' ! -name 'tr_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 50 ]]; then OOLANG=uk for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'uk.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'ru_RU' ! -name 'uk_UA' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'ru-RU' ! -name 'uk-UA' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/sdkjs-plugins/*/translations -type f ! -name 'ru-RU.json' ! -name 'langs.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/sdkjs-plugins/*/store/translations -type f ! -name 'ru-RU.json' ! -name 'langs.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/sdkjs-plugins/*/vendor/drawio/webapp/math/es5/sre/mathmaps -type f ! -name 'base.json' ! -name 'en.json' ! -name 'nemeth.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/sdkjs-plugins/*/vendor/drawio/webapp/resources -type f ! -name 'dia.txt' ! -name 'dia_i18n.txt' ! -name 'dia_ru.txt' ! -name 'dia_uk.txt'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'ru.json' ! -name 'uk.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'ru'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'uk.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'ru'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'uk.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'ru'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'uk.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'ru.json' ! -name 'ru_desc.json' ! -name 'uk.json' ! -name 'uk_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'ru'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 51 ]]; then OOLANG=vi for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'vi.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'vi_VN' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'vi.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'vi.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'vi.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'vi.json' ! -name 'vi_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 52 ]]; then OOLANG=zh-CN for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'zh-CN.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'ZH' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'zh.json' ! -name 'zh-tw.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'zh.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'zh.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'zh.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'zh.json' ! -name 'zh_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null elif [[ $REPLY = 53 ]]; then OOLANG=zh-TW for i in `find $PKG/opt/onlyoffice/desktopeditors/locales -type f ! -name 'zh-TW.pak' ! -name 'en-GB.pak' ! -name 'en-US.pak'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/dictionaries -type d -maxdepth 1 ! -name 'dictionaries' ! -name 'en_GB' ! -name 'en_US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/empty -type d -maxdepth 1 ! -name 'empty' ! -name 'en-GB' ! -name 'en-US'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/converter/templates -type d -maxdepth 1 ! -name 'templates' ! -name 'ZH' ! -name 'EN'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/pdfeditor/main/locale -type f ! -name 'en.json' ! -name 'zh.json' ! -name 'zh-tw.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/common/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/locale -type f ! -name 'zh.json'`; do rm -f $i; done # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/documenteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/locale -type f ! -name 'zh.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/presentationeditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/locale -type f ! -name 'zh.json'`; do rm -f $i; done &>/dev/null for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/formula-lang/ -type f ! -name 'zh.json' ! -name 'zh_desc.json' ! -name 'en.json' ! -name 'en_desc.json'`; do rm -f $i; done &>/dev/null # for i in `find $PKG/opt/onlyoffice/desktopeditors/editors/web-apps/apps/spreadsheeteditor/main/resources/help -type d -maxdepth 1 ! -name 'help' ! -name 'en'`; do rm -rf $i; done &>/dev/null fi ### fake Slackware type package info: super dumb version mkdir -p $PKGINFO echo "PACKAGE NAME: $PRGNAM-$VERSION-$ARCH" > $PKGINFO/$PRGNAM-$VERSION-$ARCH cat >> $PKGINFO/$PRGNAM-$VERSION-$ARCH << EOM PACKAGE DESCRIPTION: onlyoffice-desktopeditors: onlyoffice-desktopeditors (office suite) onlyoffice-desktopeditors: onlyoffice-desktopeditors: ONLYOFFICE Desktop Editors is a free AGPL v3 licensed office suite onlyoffice-desktopeditors: that combines text, spreadsheet and presentation editors. It is fully onlyoffice-desktopeditors: compatible with Office Open XML formats: .docx, .xlsx, .pptx, which onlyoffice-desktopeditors: are its native formats. It also supports DOC, ODT, RTF, TXT, PDF, onlyoffice-desktopeditors: HTML, EPUB, XPS, DjVu, XLS, ODS, CSV, PPT, ODP. onlyoffice-desktopeditors: onlyoffice-desktopeditors: Homepage: https://www.onlyoffice.com/apps.aspx onlyoffice-desktopeditors: Code repository: https://github.com/ONLYOFFICE/DesktopEditors onlyoffice-desktopeditors: FILE LIST: EOM find * | grep -v var >> $PKGINFO/$PRGNAM-$VERSION-$ARCH dir2xzm $PKG $OUTPUT/$PRGNAM-$VERSION-$ARCH-$OOLANG.xzm # Check on ONLYOFFICE Desktop Editors xzm file exists in /tmp if [ -f "$OUTPUT/$PRGNAM-$VERSION-x86_64-${OOLANG}.xzm" ]; then echo -e "\n${BOLD}Your $PRGNAM module is at: ${GREEN}${BOLD}$OUTPUT/$PRGNAM-$VERSION-$ARCH-$OOLANG.xzm${RESET}\n${BOLD}Please copy it to your modules folder to survive a reboot.${RESET}\n" else echo -e "\n${RED}${BOLD}Faile. Your $PRGNAM module is not built.${RESET}\n" fi cleanup