Bug 663576 - make -C plug-ins/script-fu check-for-deprecated-procedures-in-script-fu...

...lists files that do not use deprecated functions

Better regex that matches the right stuff.
This commit is contained in:
Alexis Wilhelm 2017-12-30 13:09:14 +01:00 committed by Michael Natterer
parent c38f14df36
commit a51efd09d1
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ check-for-deprecated-procedures-in-script-fu:
deprecated_procs=`$(top_builddir)/app/gimp-$(GIMP_APP_VERSION)$(EXEEXT) --dump-pdb-procedures-deprecated`; \
for scm_file in $$scm_files; do \
for proc in $$deprecated_procs; do \
if grep -qw $$proc $$scm_file; then \
if grep -Eq "^([^;]*[[:blank:](])?$$proc([[:blank:])]|$$)" $$scm_file; then \
echo "$${scm_file} uses deprecated procedure '$${proc}'"; \
fi \
done \