1#!/bin/sh 2 3# locales_update.sh - update translation files in the source tree 4 5# usage: locales_update.sh [build_tree_location] 6 7set -x 8 9here=$(cd "$(dirname $0)"; /bin/pwd) 10SRC=$(cd "$here"/..; /bin/pwd) 11 12BUILDTREE=$SRC/tmp 13if [ -n "$1" ]; then 14 BUILDTREE=$1 15 shift 16fi 17 18set -e 19cmake --build "$BUILDTREE" --target extract_locales_from_sources 20cmake --build "$BUILDTREE" --target update_locales_in_source_tree 21