Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / format-csharp-1
index c6ed606..792165a 100755 (executable)
@@ -1,11 +1,8 @@
 #! /bin/sh
+. "${srcdir=.}/init.sh"; path_prepend_ . ../src
 
 # Test recognition of C# format strings.
 
-tmpfiles=""
-trap 'rm -fr $tmpfiles' 1 2 3 15
-
-tmpfiles="$tmpfiles f-cs-1.data"
 cat <<\EOF > f-cs-1.data
 # Valid: one argument
 "abc{0}def"
@@ -54,7 +51,6 @@ n=0
 while read comment; do
   read string
   n=`expr $n + 1`
-  tmpfiles="$tmpfiles f-cs-1-$n.in f-cs-1-$n.po"
   cat <<EOF > f-cs-1-$n.in
 GetString(${string});
 EOF
@@ -84,6 +80,4 @@ EOF
   rm -f f-cs-1-$n.in f-cs-1-$n.po
 done < f-cs-1.data
 
-rm -fr $tmpfiles
-
 exit 0