mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
9 lines
298 B
Bash
9 lines
298 B
Bash
#!/bin/bash
|
|
|
|
# Included languages
|
|
LANGS=("bg" "ca" "cs" "de" "en_GB" "es" "fr" "gd" "gl" "hu" "id" "it" "nb" "nl" "pl" "pt_BR" "pt_PT" "ru" "sk" "sv" "tr")
|
|
|
|
REGEX=$(printf "\|%s" "${LANGS[@]}")
|
|
REGEX=".*/\("${REGEX:2}"\)\.[-A-Za-z0-9_.]\+\.po"
|
|
|
|
find "$@" -name "*.po" | grep -v "$REGEX" | xargs rm
|