2007-05-29 Roland McGrath <roland@redhat.com>

* po/Makefile (po-sed-cmd): New variable.
	(libc.pot.files): Move sed command text in there, avoid \ inside ''.
This commit is contained in:
Roland McGrath 2007-05-29 18:08:41 +00:00
parent ee5d5755a8
commit 977e7f71fd

View File

@ -1,4 +1,4 @@
# Copyright (C) 1996,1997,1998,1999,2001,2002,2006
# Copyright (C) 1996,1997,1998,1999,2001,2002,2006,2007
# Free Software Foundation, Inc.
# This file is part of the GNU C Library.
@ -71,11 +71,12 @@ ifeq ($(with-cvs),yes)
test ! -d CVS || cvs $(CVSOPTS) ci -m'Regenerated from source files' $@
endif
po-sed-cmd = \
'/\/tst-/d;$(foreach S,[ch] cxx sh bash,$(subst .,\.,/.$S\(.in\)*$$/p;))'
# Omit tst-* files, and get only files with the given suffixes.
libc.pot.files: FORCE
$(..)scripts/list-sources.sh .. | sed -n '/\/tst-/d;\
$(foreach S,[ch] cxx sh bash,$(subst .,\.,/.$S\(.in\)*$$/p;))' \
> $@.new
$(..)scripts/list-sources.sh .. | sed -n $(po-sed-cmd) > $@.new
mv -f $@.new $@
.SUFFIXES: .mo .po .pot