import_launchpad_translations.sh   import_launchpad_translations.sh 
skipping to change at line 45 skipping to change at line 45
done done
cd "$po_dir" || errex 2 "ERROR - could not change to po dir: $po_dir " cd "$po_dir" || errex 2 "ERROR - could not change to po dir: $po_dir "
for group in stellarium stellarium-skycultures; do for group in stellarium stellarium-skycultures; do
process_group "$group" process_group "$group"
done done
# output warnings last, but uniq them first # output warnings last, but uniq them first
sort -u "$log" sort -u "$log"
cd
rm -f "$log" rm -f "$log"
if [ $(svn status |grep '^?' |wc -l) -gt 0 ]; then
echo ""
echo "There are new files to add to SVN in \$STELROOT/po :"
svn status |grep '^?'
fi
rm -rf "$tmp_dir" rm -rf "$tmp_dir"
} }
detar() { detar() {
case "$1" in case "$1" in
*.tgz|*.tar.gz) *.tgz|*.tar.gz)
tar_opt=z tar_opt=z
;; ;;
*.tar.bz2) *.tar.bz2)
tar_opt=j tar_opt=j
skipping to change at line 80 skipping to change at line 74
tar ${tar_opt}xf "$1" -C "$tmp_dir" tar ${tar_opt}xf "$1" -C "$tmp_dir"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
err "unable to process tarball, SKIPPING $1" err "unable to process tarball, SKIPPING $1"
return 1 return 1
else else
return 0 return 0
fi fi
} }
process_group() { process_group() {
group_dir="$tmp_dir/translations/$1" group_dir="$tmp_dir/po/$1"
if [[ ! -d "$group_dir" ]]; then if [[ ! -d "$group_dir" ]]; then
err "process_group: couldn't find group dir $group_dir"
return return
fi fi
if [[ ! -d "$1" ]]; then if [[ ! -d "$1" ]]; then
err "destination translation directory \"$po_dir/$1\" does n ot exist, SKIPPING group $1" err "destination translation directory \"$po_dir/$1\" does n ot exist, SKIPPING group $1"
return return
fi fi
declare -a processed_codes declare -a processed_codes
echo -n "processing directory \$STELROOT/po/$1 : " echo -n "processing directory \$STELROOT/po/$1 : "
 End of changes. 4 change blocks. 
8 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/