Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/tools/dist/build-archives.sh
Show All 16 Lines | |||||
# Keep in sync with source/tools/i18n/creditTranslators.py and with the installer languages in 0ad.nsi | # Keep in sync with source/tools/i18n/creditTranslators.py and with the installer languages in 0ad.nsi | ||||
LANGS=("ast" "bg" "ca" "cs" "de" "el" "en_GB" "es" "eu" "fr" "gd" "gl" "hu" "id" "it" "ms" "nb" "nl" "pl" "pt_BR" "pt_PT" "ru" "sk" "sv" "tr" "uk") | LANGS=("ast" "bg" "ca" "cs" "de" "el" "en_GB" "es" "eu" "fr" "gd" "gl" "hu" "id" "it" "ms" "nb" "nl" "pl" "pt_BR" "pt_PT" "ru" "sk" "sv" "tr" "uk") | ||||
REGEX=$(printf "\|%s" "${LANGS[@]}") | REGEX=$(printf "\|%s" "${LANGS[@]}") | ||||
REGEX=".*/\("${REGEX:2}"\)\.[-A-Za-z0-9_.]\+\.po" | REGEX=".*/\("${REGEX:2}"\)\.[-A-Za-z0-9_.]\+\.po" | ||||
find binaries/ -name "*.po" | grep -v "$REGEX" | xargs rm -v || die "Error filtering languages." | find binaries/ -name "*.po" | grep -v "$REGEX" | xargs rm -v || die "Error filtering languages." | ||||
SVN_REV=$(svnversion -n ../..) | |||||
echo "${SVN_REV}-release" > build/svn_revision/svn_revision.txt | |||||
# Build archive(s) - don't archive the _test.* mods | # Build archive(s) - don't archive the _test.* mods | ||||
pushd binaries/data/mods > /dev/null | pushd binaries/data/mods > /dev/null | ||||
archives="" | archives="" | ||||
ONLY_MOD="${ONLY_MOD:=false}" | ONLY_MOD="${ONLY_MOD:=false}" | ||||
if [ "${ONLY_MOD}" = true ]; then | if [ "${ONLY_MOD}" = true ]; then | ||||
archives="mod" | archives="mod" | ||||
else | else | ||||
for modname in [a-zA-Z0-9]* | for modname in [a-zA-Z0-9]* | ||||
Show All 17 Lines |
Wildfire Games · Phabricator