Mailinglist Archive: opensuse-buildservice (354 mails)

< Previous Next >
[opensuse-buildservice] removing one line from a predefined multiline RPM macro
  • From: Robert Schiele <rschiele@xxxxxxxxx>
  • Date: Sat, 24 Feb 2007 11:16:38 +0100
  • Message-id: <20070224101638.GO1040@xxxxxxxxxxxxxxxxxx>
Hello!

What is the smartest way to remove one specific line from a predefined RPM
macro if it is present?

Example:

Consider the predefined macro %{amacro} contains:

foo
bar
otherline

Now I want to remove the line with "bar" (or make it an empty line) but leave
all other content untouched.

This is where macro expansion mechanisms become an ugly beast... :-/

Robert

--
Robert Schiele
Dipl.-Wirtsch.informatiker mailto:rschiele@xxxxxxxxx

"Quidquid latine dictum sit, altum sonatur."
< Previous Next >
This Thread
  • No further messages