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