diff options
author | Joey Hess <joeyh@debian.org> | 2005-10-07 19:51:38 +0000 |
---|---|---|
committer | Joey Hess <joeyh@debian.org> | 2005-10-07 19:51:38 +0000 |
commit | 1ea73eea5ecc6a8ed901316049259aee737ee554 (patch) | |
tree | 03a077f0b1b1548f3c806bd1c5795964fba0fb52 /scripts/cp-untrans | |
download | installation-guide-1ea73eea5ecc6a8ed901316049259aee737ee554.zip |
move manual to top-level directory, split out of debian-installer package
Diffstat (limited to 'scripts/cp-untrans')
-rwxr-xr-x | scripts/cp-untrans | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/scripts/cp-untrans b/scripts/cp-untrans new file mode 100755 index 000000000..a41356097 --- /dev/null +++ b/scripts/cp-untrans @@ -0,0 +1,39 @@ +#!/bin/sh + +# If doc-check shows outdated untranslated files, this script can +# be used to copy the new English versions of these updated files +# to your translation. The script will also run rev-update for you. + +# Note: +# Run doc-check before you run this script. +# It is recommended you use 'svn diff <language>' to check the +# changes made by this script before committing. + +set -e + +if [ "$1" = "--help" ]; then + echo "Usage: $0 language" + exit 0 +fi + +language=${1:-pl} + +UFILES="$(./scripts/doc-check $language 2>/dev/null | \ + egrep "^en\/.* \(untranslated\)$" | \ + cut -d" " -f1 | cut -d"/" -f2- )" + +if [ -z "$UFILES" ] ; then + echo "No updated untranslated files for language '$language' found." + exit 0 +fi + +for UFILE in $UFILES; do + echo "Copying $UFILE from ./en to ./$language" + cp ./en/$UFILE ./$language/$UFILE +done + +echo "" +echo "Running rev-update..." +./scripts/rev-update $language + +exit 0 |