is "grep" command exists into cmake ?

Laurent Montel montel at kde.org
Wed Mar 8 19:02:18 CET 2006


On Wednesday 08 March 2006 18:39, Alexander Neundorf wrote:
> On Wednesday 08 March 2006 14:41, Laurent Montel wrote:
> > Hi,
> > I need to use "grep" command.
> > Is it cmake provide it ?
>
> FILE(READ ...)
> and then STRING(REGEXP ...),
> see the KDE4_AUTOMOC() macro
>
> Alex

I must port it:
#ical.h: $(COMBINEDHEADERS)
#   echo '#ifdef __cplusplus'     >  ical.h
#   echo 'extern "C" {'       >> ical.h
#   echo '#endif'             >> ical.h
#   echo '/*'             >> ical.h
#   echo ' $$''Id''$$'        >> ical.h
#   echo '*/'             >> ical.h
#   cat $(COMBINEDHEADERS)              \
#   | egrep -v "#include.*\"ical"           \
#   | egrep -v "#include.*\"config"         \
#   | egrep -v "#include.*\"pvl\.h\""       \
#   | egrep -v '\$$(Id|Locker): .+\$$'>> ical.h
#   echo '#ifdef __cplusplus'     >> ical.h
#   echo '}'              >> ical.h
#   echo '#endif'             >> ical.h
#
## parameters


for "echo" it's not a problem.
My problem is the result of egrep -v

Regards


More information about the Kde-buildsystem mailing list