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