Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / format-librep-2
index 05d26ab..6266619 100755 (executable)
@@ -1,11 +1,8 @@
 #! /bin/sh
+. "${srcdir=.}/init.sh"; path_prepend_ . ../src
 
 # Test checking of librep format strings.
 
-tmpfiles=""
-trap 'rm -fr $tmpfiles' 1 2 3 15
-
-tmpfiles="$tmpfiles f-lr-2.data"
 cat <<\EOF > f-lr-2.data
 # Valid: %% doesn't count
 msgid  "abc%%def"
@@ -117,7 +114,6 @@ while read comment; do
   read msgid_line
   read msgstr_line
   n=`expr $n + 1`
-  tmpfiles="$tmpfiles f-lr-2-$n.po f-lr-2-$n.mo"
   cat <<EOF > f-lr-2-$n.po
 #, librep-format
 ${msgid_line}
@@ -146,6 +142,4 @@ EOF
   rm -f f-lr-2-$n.po f-lr-2-$n.mo
 done < f-lr-2.data
 
-rm -fr $tmpfiles
-
 exit 0