#!/bin/bash
# update a single po file, otherwise the diff would be unnecessarily large

if [ -z "$1" ]; then
	echo "Usage: $0 <locale>"
	echo "	e.g. $0 de"
	exit 1;
fi

file="$1.gmo"

if [ ! -e "$file" ]; then
	echo "$file does not exist"
	exit 1;
fi

make "GMOFILES=$file" update-po
msgfmt -c "$1.po"
