3
# If doc-check shows outdated untranslated files, this script can
4
# be used to copy the new English versions of these updated files
5
# to your translation. The script will also run rev-update for you.
8
# Run doc-check before you run this script.
9
# It is recommended you use 'svn diff <language>' to check the
10
# changes made by this script before committing.
14
if [ "$1" = "--help" ]; then
15
echo "Usage: $0 language"
21
UFILES="$(./scripts/doc-check $language 2>/dev/null | \
22
egrep "^en\/.* \(untranslated\)$" | \
23
cut -d" " -f1 | cut -d"/" -f2- )"
25
if [ -z "$UFILES" ] ; then
26
echo "No updated untranslated files for language '$language' found."
30
for UFILE in $UFILES; do
31
echo "Copying $UFILE from ./en to ./$language"
32
cp ./en/$UFILE ./$language/$UFILE
36
echo "Running rev-update..."
37
./scripts/rev-update $language