Ticket #2825: dist_langs.diff
File dist_langs.diff, 1.7 KB (added by , 10 years ago) |
---|
-
build/workspaces/build-osx-bundle.sh
84 84 cd $build_path 85 85 rm binaries/data/config/dev.cfg 86 86 # Only include translations for a subset of languages 87 find binaries/data -name "*.po" | grep -v '.*/\(ca\|cs\|de\|en_GB\|es\|fr\|gd\|gl\|it\|nl\|pt_PT\|pt_BR\)\.[-A-Za-z0-9_.]\+\.po' | xargs rm87 . source/tools/dist/l10n.sh $build_path 88 88 echo L\"${SVNREV}-release\" > build/svn_revision/svn_revision.txt 89 89 cd build/workspaces 90 90 fi -
source/tools/dist/build.sh
23 23 svn export --native-eol CRLF ${SVNWC} export-win32 24 24 25 25 # Only include translations for a subset of languages 26 find export-{unix,win32}/binaries/data/ -name "*.po" | grep -v '.*/\(ca\|cs\|de\|en_GB\|es\|fr\|gd\|gl\|it\|nl\|pt_PT\|pt_BR\)\.[-A-Za-z0-9_.]\+\.po' | xargs rm 26 . l10n.sh export-{unix/win32}/binaries/data/ 27 27 28 28 # Update the svn_revision, so these builds can be identified 29 29 echo L\"${SVNREV}-release\" > export-unix/build/svn_revision/svn_revision.txt -
source/tools/dist/l10n.sh
1 #!/bin/bash 2 3 # Included languages 4 LANGS=("ca" "cs" "de" "en_GB" "es" "fr" "gd" "gl" "it" "nl" "pt_PT" "pt_BR") 5 6 REGEX=$(printf "\|%s" "${LANGS[@]}") 7 REGEX=".*/\("${REGEX:2}"\).[-A-Za-z0-9_.]\+\.po" 8 9 find $1 -name "*.po" | grep -v "$REGEX" | xargs rm