Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / format-scheme-1
index 753ddf0..6a34146 100755 (executable)
@@ -1,11 +1,8 @@
 #! /bin/sh
+. "${srcdir=.}/init.sh"; path_prepend_ . ../src
 
 # Test recognition of Scheme format strings.
 
-tmpfiles=""
-trap 'rm -fr $tmpfiles' 1 2 3 15
-
-tmpfiles="$tmpfiles f-sc-1.data"
 cat <<\EOF > f-sc-1.data
 # Valid: no argument, ( | . *)
 "abc~~def"
@@ -260,7 +257,6 @@ n=0
 while read comment; do
   read string
   n=`expr $n + 1`
-  tmpfiles="$tmpfiles f-sc-1-$n.in f-sc-1-$n.po"
   cat <<EOF > f-sc-1-$n.in
 (gettext ${string})
 EOF
@@ -290,6 +286,4 @@ EOF
   rm -f f-sc-1-$n.in f-sc-1-$n.po
 done < f-sc-1.data
 
-rm -fr $tmpfiles
-
 exit 0