]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/build] Re-add *.[ch] in gdb.pot
authorTom de Vries <tdevries@suse.de>
Mon, 8 Dec 2025 08:30:25 +0000 (09:30 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 8 Dec 2025 08:30:25 +0000 (09:30 +0100)
In commit 4a40fe05bf0 ("[gdb/build] Handle gdbsupport and gdbserver in
gdb.pot"), in order to handle '*.cc' files I did:
...
-   -name '*.[hc]' -print
+   -name '*.[hc]' -o -name '*.cc' -print
...
but failed to understand that this no longer printed the '*.[hc]' names.

Fix this by adding a '-print' for '*.[hc]'.

Tested by doing:
...
$ cd build/gdb
$ make po/gdb.pot
 ...
$ grep -c symtab.c po/gdb.pot
102
...

gdb/po/gdbtext

index b35c66560a798bb6bece566494afddb75eb5e4db..37cd6dd3ae96111109e89f8d735f907b7c405a7e 100755 (executable)
@@ -22,7 +22,8 @@ do
          -name '*-stub.c' -prune -o \
          -name 'testsuite' -prune -o \
          -name 'init.c' -prune -o \
-         -name '*.[hc]' -o -name '*.cc' -print
+         -name '*.[hc]' -print -o \
+         -name '*.cc' -print
   )
 done | ${xgettext} \
     --default-domain=${package} \