1#! /bin/sh 2 3# Test general operation with Java .properties syntax. 4 5tmpfiles="" 6trap 'rm -fr $tmpfiles' 1 2 3 15 7 8tmpfiles="$tmpfiles men-test2.properties" 9cat <<\EOF > men-test2.properties 10!height\ must\ be\ positive= 11 12color\ cannot\ be\ transparent=colour cannot be transparent 13 14width\ must\ be\ positive= 15EOF 16 17tmpfiles="$tmpfiles men-test2.out" 18: ${MSGEN=msgen} 19${MSGEN} --properties-input --properties-output -o men-test2.out men-test2.properties 20test $? = 0 || { rm -fr $tmpfiles; exit 1; } 21 22tmpfiles="$tmpfiles men-test2.ok" 23cat <<\EOF > men-test2.ok 24height\ must\ be\ positive=height must be positive 25 26color\ cannot\ be\ transparent=colour cannot be transparent 27 28width\ must\ be\ positive=width must be positive 29EOF 30 31: ${DIFF=diff} 32${DIFF} men-test2.ok men-test2.out 33result=$? 34 35rm -fr $tmpfiles 36 37exit $result 38