aboutsummaryrefslogtreecommitdiff
path: root/bfd/po
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-08-17 09:01:17 +0930
committerAlan Modra <amodra@gmail.com>2023-08-17 21:44:04 +0930
commit05fbbeacaa761976fea5580d993aa6cb7f5342a0 (patch)
tree2bed8615a73bd52c398ec62a4f57f44a7e86220d /bfd/po
parent880802688cf7322c50994716456d05499e8c0d4d (diff)
downloadbinutils-05fbbeacaa761976fea5580d993aa6cb7f5342a0.zip
binutils-05fbbeacaa761976fea5580d993aa6cb7f5342a0.tar.gz
binutils-05fbbeacaa761976fea5580d993aa6cb7f5342a0.tar.bz2
generated bfd files, and kvx regen
The elf32-kvx.c and elf64-kvx.c rules in the bfd makefile are different to the other similar generated files, and that reminded me that we need to have $srcdir in the generated #line reference back to the source for debugging, but don't want it for comments in bfd.pot (because then bfd.pot will likely reference Nick's source tree). This patch fixes that by making all the #line use $srcdir by virtue of using $<, and edits bfd.pot. I also uniq list of files to remove duplicated elfxx-x86.c, sort lists of files and regen with our standard automake/autoconf. * configure: Regenerate. bfd/ * Makefile.am: Sort various lists of files. Use $< in #line directive of generated C files. (po/SRC-POTFILES.in): uniq SRC_POTFILES. (po/BLD-POTFILES.in): uniq BFD_POTFILES. * Makefile.in: Regenerate. * po/Make-in (bfd.pot): Edit out source dir from comments. * po/SRC-POTFILES.in: Regenerate. gas/ * Makefile.in: Regenerate. * configure: Regenerate. * po/POTFILES.in: Regenerate. ld/ * Makefile.am (ALL_64_EMULATION_SOURCES): Sort. * Makefile.in: Regenerate.
Diffstat (limited to 'bfd/po')
-rw-r--r--bfd/po/Make-in4
-rw-r--r--bfd/po/SRC-POTFILES.in1
2 files changed, 2 insertions, 3 deletions
diff --git a/bfd/po/Make-in b/bfd/po/Make-in
index 3229be6..30bcd55 100644
--- a/bfd/po/Make-in
+++ b/bfd/po/Make-in
@@ -105,8 +105,8 @@ $(srcdir)/$(PACKAGE).pot: $(SRC-POTFILES) $(BLD-POTFILES)
--join-existing \
--msgid-bugs-address=https://sourceware.org/bugzilla/ \
--files-from=$(srcdir)/BLD-POTFILES.in
- rm -f $(srcdir)/$(PACKAGE).pot
- mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot
+ sed -e '/^#:/s,$(top_srcdir)/,,g' < $(PACKAGE).po > $@-t
+ mv -f $@-t $@
$(srcdir)/cat-id-tbl.c: stamp-cat-id; @:
$(srcdir)/stamp-cat-id: $(PACKAGE).pot
diff --git a/bfd/po/SRC-POTFILES.in b/bfd/po/SRC-POTFILES.in
index c259931..ab9cf27 100644
--- a/bfd/po/SRC-POTFILES.in
+++ b/bfd/po/SRC-POTFILES.in
@@ -274,7 +274,6 @@ elfxx-sparc.h
elfxx-tilegx.c
elfxx-tilegx.h
elfxx-x86.c
-elfxx-x86.c
elfxx-x86.h
format.c
genlink.h