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