0ad/source/tools/dist/remove-incomplete-translations.sh
2015-03-02 00:10:00 +00:00

9 lines
267 B
Bash

#!/bin/bash
# Included languages
LANGS=("ca" "cs" "de" "en_GB" "es" "fr" "gd" "gl" "id" "it" "nl" "pt_PT" "pt_BR" "ru" "tr")
REGEX=$(printf "\|%s" "${LANGS[@]}")
REGEX=".*/\("${REGEX:2}"\).[-A-Za-z0-9_.]\+\.po"
find "$@" -name "*.po" | grep -v "$REGEX" | xargs rm