Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / format-sh-2
index cf8bbf0..d98005a 100755 (executable)
@@ -1,11 +1,8 @@
 #! /bin/sh
+. "${srcdir=.}/init.sh"; path_prepend_ . ../src
 
 # Test checking of Shell format strings.
 
-tmpfiles=""
-trap 'rm -fr $tmpfiles' 1 2 3 15
-
-tmpfiles="$tmpfiles f-sh-2.data"
 cat <<\EOF > f-sh-2.data
 # Invalid: invalid msgstr
 msgid  "abc$file"
@@ -33,7 +30,6 @@ while read comment; do
   read msgid_line
   read msgstr_line
   n=`expr $n + 1`
-  tmpfiles="$tmpfiles f-sh-2-$n.po f-sh-2-$n.mo"
   cat <<EOF > f-sh-2-$n.po
 #, sh-format
 ${msgid_line}
@@ -62,6 +58,4 @@ EOF
   rm -f f-sh-2-$n.po f-sh-2-$n.mo
 done < f-sh-2.data
 
-rm -fr $tmpfiles
-
 exit 0