Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / format-pascal-1
index 1439c28..16549b1 100755 (executable)
@@ -1,11 +1,8 @@
 #! /bin/sh
+. "${srcdir=.}/init.sh"; path_prepend_ . ../src
 
 # Test recognition of Object Pascal format strings.
 
-tmpfiles=""
-trap 'rm -fr $tmpfiles' 1 2 3 15
-
-tmpfiles="$tmpfiles f-op-1.data"
 cat <<\EOF > f-op-1.data
 # Valid: no argument
 "abc%%"
@@ -96,7 +93,6 @@ n=0
 while read comment; do
   read string
   n=`expr $n + 1`
-  tmpfiles="$tmpfiles f-op-1-$n.in f-op-1-$n.po"
   echo "x.y=${string}" | sed -e "s/\"/'/g" > f-op-1-$n.in
   ${XGETTEXT} -L RST -o f-op-1-$n.po f-op-1-$n.in || exit 1
   test -f f-op-1-$n.po || exit 1
@@ -124,6 +120,4 @@ while read comment; do
   rm -f f-op-1-$n.in f-op-1-$n.po
 done < f-op-1.data
 
-rm -fr $tmpfiles
-
 exit 0