Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / format-python-1
index 2723697..b42ccca 100755 (executable)
@@ -1,11 +1,8 @@
 #! /bin/sh
+. "${srcdir=.}/init.sh"; path_prepend_ . ../src
 
 # Test recognition of Python format strings.
 
-tmpfiles=""
-trap 'rm -fr $tmpfiles' 1 2 3 15
-
-tmpfiles="$tmpfiles f-p-1.data"
 cat <<\EOF > f-p-1.data
 # Valid: no argument
 "abc%%"
@@ -97,13 +94,11 @@ cat <<\EOF > f-p-1.data
 "abc%(addr).*x"
 EOF
 
-tmpfiles="$tmpfiles f-p-1.err"
 : ${XGETTEXT=xgettext}
 n=0
 while read comment; do
   read string
   n=`expr $n + 1`
-  tmpfiles="$tmpfiles f-p-1-$n.in f-p-1-$n.po"
   cat <<EOF > f-p-1-$n.in
 gettext(${string});
 EOF
@@ -135,6 +130,4 @@ EOF
   rm -f f-p-1-$n.in f-p-1-$n.po
 done < f-p-1.data
 
-rm -fr $tmpfiles
-
 exit 0