diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-04-13 22:39:49 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-04-13 22:39:49 +0000 |
commit | 9080cf851154c54bef83895133f11ffcdff837a3 (patch) | |
tree | 45b2c77e7e917c2651a4ab11418dd95f8d43272d /exgettext | |
parent | 6a7b42e65a6f57eca1747f2571fb871d90c86431 (diff) | |
download | diffutils-9080cf851154c54bef83895133f11ffcdff837a3.tar.gz |
Don't generate a temporary file, as this runs afoul of "make distcheck"
which operates with read-only directories.
Diffstat (limited to 'exgettext')
-rwxr-xr-x | exgettext | 16 |
1 files changed, 4 insertions, 12 deletions
@@ -1,7 +1,7 @@ #! /bin/sh # Wrapper around gettext for programs using the msgid convention. -# Copyright (C) 1998, 2001 Free Software Foundation, Inc. +# Copyright (C) 1998, 2001, 2004 Free Software Foundation, Inc. # Written by Paul Eggert <eggert@twinsun.com>. @@ -89,9 +89,8 @@ keyword_options=`( $AWK "$generate_keyword_options" $files < /dev/null )` || exit -# Generate temporary file reflecting the %e strings in the scanned files. -tmp=tmp-emsgids.c - +# Run the xgettext command, with extra input containing the extra +# msgids that it wouldn't normally find. generate_emsgids=' /%e.*}/ { line = $0 @@ -113,11 +112,4 @@ generate_emsgids=' ' (cd $directory && $AWK "$generate_emsgids" $files < /dev/null -) > $directory/$tmp || exit - -# Run the xgettext command, with temporary added as a file to scan. -"$xgettext" $keyword_options ${1+"$@"} $tmp || exit - -# Clean up. -# If we don't get here, `make clean' will remove this file later. -rm -f $directory/$tmp +) | "$xgettext" $keyword_options ${1+"$@"} - |