source: llxmoz-l10n/trunk/fuentes/install/usr/bin/update-moz-po @ 780

Last change on this file since 780 was 780, checked in by jrpelegrina, 4 years ago

First release to xenial

  • Property svn:executable set to *
File size: 467 bytes
Line 
1#!/bin/bash
2for x in $(find $1 -name "*.pot"); do
3    ca_es_file=$(echo $x | sed -e "s%\/en-GB\/%/ca-ES/%g;s%^en_pot%ca-es_po%g;s%pot$%po%g")
4
5
6    if [ ! -e "$ca_es_file" ]; then
7        dir_name="$(dirname $ca_es_file)"
8        mkdir -p "$dir_name"
9        cp "$x" "$ca_es_file"
10        echo "copiando el fichero $ca_es_file"
11    else
12        msgmerge -U "$ca_es_file" "$x"
13        mv "${ca_es_file}~" "$ca_es_file"
14        echo "moviendo $ca_es_file"
15    fi
16
17done
Note: See TracBrowser for help on using the repository browser.