#! /bin/sh

# Test general operation with Java .properties syntax.

tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15

: ${MSGUNIQ=../src/msguniq}
: ${MSGCAT=../src/msgcat}
: ${DIFF=diff -b}

tmpfiles="$tmpfiles msguniq-4.out"
${MSGUNIQ} --properties-input --properties-output -w 1000 -o msguniq-4.out ${srcdir}/msguniq-a.inp
test $? = 0 || { rm -fr $tmpfiles; exit 1; }

tmpfiles="$tmpfiles msguniq-4.ok"
${MSGCAT} --properties-output -w 1000 -o msguniq-4.ok ${srcdir}/msguniq-a.out.expected
test $? = 0 || { rm -fr $tmpfiles; exit 1; }

${DIFF} msguniq-4.ok msguniq-4.out
result=$?

rm -fr $tmpfiles

exit $result
