Make it possible to use a distinct selection model in the foldertreewidget.
[kdepim.git] / kleopatra / ensure_config_h-included.sh
blob89f785608e1b2d17f04a99e01f17b604015476a1
1 #!/bin/bash
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;"