#!/bin/sh for LNG in "$@" ; do cp -a ${LNG}.po ${LNG}_new.po if test -f ${LNG}_added.po ; then msgcat --use-first ${LNG}_new.po ${LNG}_added.po -o ${LNG}_new2.po mv ${LNG}_new2.po ${LNG}_new.po fi if test -f ${LNG}_changed.po ; then msgcat --use-first ${LNG}_changed.po ${LNG}_new.po -o ${LNG}_new2.po mv ${LNG}_new2.po ${LNG}_new.po fi mv ${LNG}_new.po ${LNG}.po done