mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
build: Simplify and speed up expression that generates po/POTFILES.
This has to run on every build, so: - Use two grep commands instead of lots. - Remove unnecessary use of sed. - Remove some obsolete directories that haven't existed for a long time.
This commit is contained in:
19
Makefile.am
19
Makefile.am
@@ -257,21 +257,10 @@ dist-hook:
|
||||
# to DIST_SUBDIRS.
|
||||
all-local:
|
||||
cd $(srcdir); \
|
||||
find $(DIST_SUBDIRS) \
|
||||
-name '*.c' -o -name '*.pl' -o -name '*.pm' | \
|
||||
grep -v '^perl/blib/' | \
|
||||
grep -v '^tests/' | \
|
||||
grep -v '^daemon/lib/' | \
|
||||
grep -v '^daemon/tests/' | \
|
||||
grep -v '^examples/' | \
|
||||
grep -v '^gnulib/' | \
|
||||
grep -v '^perl/examples/' | \
|
||||
grep -v '/guestfs_protocol.c' | \
|
||||
grep -v '/rc_protocol.c' | \
|
||||
grep -v '^po-docs/' | \
|
||||
grep -v '^images/' | \
|
||||
LC_ALL=C sort | \
|
||||
sed 's,^\./,,' > po/POTFILES
|
||||
find $(DIST_SUBDIRS) -name '*.c' -o -name '*.pl' -o -name '*.pm' | \
|
||||
grep -v -E '^(examples|gnulib|perl/(blib|examples)|po-docs|tests)/' | \
|
||||
grep -v -E '/((guestfs|rc)_protocol\.c)$$' | \
|
||||
LC_ALL=C sort > po/POTFILES
|
||||
cd $(srcdir); \
|
||||
find resize sparsify sysprep -name '*.ml' | \
|
||||
LC_ALL=C sort > po/POTFILES-ml
|
||||
|
||||
Reference in New Issue
Block a user