3 CONFIG_H
=config-kleopatra.h
6 # Adds #include <$CONFIG_H> to all implementation files,
7 # right before the first existing preprocessor directive (^#)
10 my_REPLACEMENT_TEXT
='#include <config-kleopatra.h>
14 find "$@" -name '*.cpp' -o -name '*.cc' -o -name '*.cxx' -o -name '*.c' | \
15 xargs grep -LE '# *include *[<"]config-kleopatra.h[>"]' | \
16 xargs perl
-0777 -pi\~
-e "s/^#/${my_REPLACEMENT_TEXT}#/m;"