#! /bin/sh # Test general operation with Java .properties syntax. tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 tmpfiles="$tmpfiles men-test2.properties" cat <<\EOF > men-test2.properties !height\ must\ be\ positive= color\ cannot\ be\ transparent=colour cannot be transparent width\ must\ be\ positive= EOF tmpfiles="$tmpfiles men-test2.out" : ${MSGEN=msgen} ${MSGEN} --properties-input --properties-output -o men-test2.out men-test2.properties test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles men-test2.ok" cat <<\EOF > men-test2.ok height\ must\ be\ positive=height must be positive color\ cannot\ be\ transparent=colour cannot be transparent width\ must\ be\ positive=width must be positive EOF : ${DIFF=diff} ${DIFF} men-test2.ok men-test2.out result=$? rm -fr $tmpfiles exit $result