msgunfmt-properties-1 revision 1.1.1.1
1#! /bin/sh 2 3# Test of general operation with Java .properties syntax. 4 5tmpfiles="" 6trap 'rm -fr $tmpfiles' 1 2 3 15 7 8tmpfiles="$tmpfiles mu-p-1.in" 9cat <<EOF > mu-p-1.in 10eight=eighth 11 12five=fifth 13 14four=fourth 15 16one=first 17 18seven=seventh 19 20six=sixth 21 22three=third 23 24two=second 25EOF 26 27tmpfiles="$tmpfiles mu-p-1.mo" 28: ${MSGFMT=msgfmt} 29${MSGFMT} --properties-input -o mu-p-1.mo mu-p-1.in 30test $? = 0 || { rm -fr $tmpfiles; exit 1; } 31 32tmpfiles="$tmpfiles mu-p-1.out" 33: ${MSGUNFMT=msgunfmt} 34${MSGUNFMT} --properties-output -o mu-p-1.out mu-p-1.mo 35test $? = 0 || { rm -fr $tmpfiles; exit 1; } 36 37: ${DIFF=diff} 38${DIFF} mu-p-1.in mu-p-1.out 39result=$? 40 41rm -fr $tmpfiles 42 43exit $result 44