]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/po/Make-in
generated bfd files, and kvx regen
[thirdparty/binutils-gdb.git] / bfd / po / Make-in
index 3229be6eb181231bd20ec627cf1fb94f1306b4d2..30bcd5576e9af7459ffe0326f08751c94346d9b1 100644 (file)
@@ -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