~ubuntu-branches/ubuntu/vivid/installation-guide/vivid-proposed

« back to all changes in this revision

Viewing changes to scripts/cp-untrans

  • Committer: Bazaar Package Importer
  • Author(s): Frans Pop
  • Date: 2005-10-25 17:37:25 UTC
  • Revision ID: james.westby@ubuntu.com-20051025173725-aq0bm11be7bfd7rw
Tags: 20051025
* Mention in copyright that full GPL is included in the manual.
  Closes: #334925
* Register installed documents with doc-base.
* Minor updates in English text and translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
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.
 
6
 
 
7
# Note:
 
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.
 
11
 
 
12
set -e
 
13
 
 
14
if [ "$1" = "--help" ]; then
 
15
    echo "Usage: $0 language"
 
16
    exit 0
 
17
fi
 
18
 
 
19
language=${1:-pl}
 
20
 
 
21
UFILES="$(./scripts/doc-check $language 2>/dev/null | \
 
22
            egrep "^en\/.* \(untranslated\)$" | \
 
23
            cut -d" " -f1 | cut -d"/" -f2- )"
 
24
 
 
25
if [ -z "$UFILES" ] ; then
 
26
    echo "No updated untranslated files for language '$language' found."
 
27
    exit 0
 
28
fi
 
29
 
 
30
for UFILE in $UFILES; do
 
31
    echo "Copying $UFILE from ./en to ./$language"
 
32
    cp ./en/$UFILE ./$language/$UFILE
 
33
done
 
34
 
 
35
echo ""
 
36
echo "Running rev-update..."
 
37
./scripts/rev-update $language
 
38
 
 
39
exit 0