Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / format-perl-brace-1
index e78266f..c42ddaa 100755 (executable)
@@ -1,11 +1,8 @@
 #! /bin/sh
+. "${srcdir=.}/init.sh"; path_prepend_ . ../src
 
 # Test recognition of Perl brace format strings.
 
-tmpfiles=""
-trap 'rm -fr $tmpfiles' 1 2 3 15
-
-tmpfiles="$tmpfiles f-pb-1.data"
 cat <<\EOF > f-pb-1.data
 # Invalid: no argument
 "abc"
@@ -36,7 +33,6 @@ n=0
 while read comment; do
   read string
   n=`expr $n + 1`
-  tmpfiles="$tmpfiles f-pb-1-$n.in f-pb-1-$n.po"
   cat <<EOF > f-pb-1-$n.in
 gettext(${string});
 EOF
@@ -66,6 +62,4 @@ EOF
   rm -f f-pb-1-$n.in f-pb-1-$n.po
 done < f-pb-1.data
 
-rm -fr $tmpfiles
-
 exit 0