1
0
forked from 0ad/0ad
0ad/source/tools/dist/remove-incomplete-translations.sh
Itms a028027f75 Fix previous commit.
This was SVN commit r15847.
2014-10-05 22:46:24 +00:00

10 lines
262 B
Bash

#!/bin/bash
# Included languages
LANGS=("ca" "cs" "de" "en_GB" "es" "fr" "gd" "gl" "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