/[d-i]/trunk/manual/scripts/cp-untrans
ViewVC logotype

Contents of /trunk/manual/scripts/cp-untrans

Parent Directory Parent Directory | Revision Log Revision Log


Revision 27095 - (show annotations) (download)
Thu Apr 28 18:50:08 2005 UTC (8 years ago) by fjpop-guest
Original Path: trunk/installer/doc/manual/scripts/cp-untrans
File size: 942 byte(s)
Fix logic error in build/util/pkg-list to get rid of incorrect warnings about missing lists
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:-nl}
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

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5