3 # Test C# support: extraction of contexts.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles xg-cs-7.cs"
9 cat <<\EOF > xg-cs-7.cs
10 Console.WriteLine(rm.GetString("help"));
11 Console.WriteLine(rm.GetParticularString("Help", "about"));
14 tmpfiles="$tmpfiles xg-cs-7.tmp.po xg-cs-7.po"
15 : ${XGETTEXT=xgettext}
16 ${XGETTEXT} --omit-header --no-location -d xg-cs-7.tmp xg-cs-7.cs
17 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
18 LC_ALL=C tr -d '\r' < xg-cs-7.tmp.po > xg-cs-7.po
19 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
21 tmpfiles="$tmpfiles xg-cs-7.ok"
22 cat <<EOF > xg-cs-7.ok
32 ${DIFF} xg-cs-7.ok xg-cs-7.po