#! /bin/sh
+. "${srcdir=.}/init.sh"; path_prepend_ . ../src
# Test recognition of PHP format strings.
-tmpfiles=""
-trap 'rm -fr $tmpfiles' 1 2 3 15
-
-tmpfiles="$tmpfiles f-ph-1.data"
cat <<\EOF > f-ph-1.data
# Valid: no argument
"abc%%"
while read comment; do
read string
n=`expr $n + 1`
- tmpfiles="$tmpfiles f-ph-1-$n.in f-ph-1-$n.po"
echo "<?= gettext(${string}) ?>" | sed -e 's/\$/\\\$/g' > f-ph-1-$n.in
${XGETTEXT} -L PHP -o f-ph-1-$n.po f-ph-1-$n.in || exit 1
test -f f-ph-1-$n.po || exit 1
rm -f f-ph-1-$n.in f-ph-1-$n.po
done < f-ph-1.data
-rm -fr $tmpfiles
-
exit 0