Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / format-perl-1
index 878a7ed..3f8a44a 100755 (executable)
@@ -1,11 +1,8 @@
 #! /bin/sh
+. "${srcdir=.}/init.sh"; path_prepend_ . ../src
 
 # Test recognition of Perl format strings.
 
-tmpfiles=""
-trap 'rm -fr $tmpfiles' 1 2 3 15
-
-tmpfiles="$tmpfiles f-pl-1.data"
 cat <<\EOF > f-pl-1.data
 # Valid: no argument
 "abc%%"
@@ -136,7 +133,6 @@ n=0
 while read comment; do
   read string
   n=`expr $n + 1`
-  tmpfiles="$tmpfiles f-pl-1-$n.in f-pl-1-$n.po"
   sed -e 's,\$,\\$,g' <<EOF > f-pl-1-$n.in
 gettext(${string});
 EOF
@@ -166,6 +162,4 @@ EOF
   rm -f f-pl-1-$n.in f-pl-1-$n.po
 done < f-pl-1.data
 
-rm -fr $tmpfiles
-
 exit 0