[Rpm-maint] [rpm-software-management/rpm] RFE Please add a verb to inhibit macro expansion (#569)
nim-nim
notifications at github.com
Sun Oct 7 16:57:21 UTC 2018
So I have a versy large shell macro, inside an `%{expand}` because it’s full of rpm variables that need interpetation, and I’m sick of the `\` game.
Among lots of other things, this macro needs to generale a `%license <somefile>` in file lists.
And of course that won't work because rpm will try to replace the `%license` tag with the content of the package `%{license}` variable.
My current hack is to do
```sh
while read -r -d $'\\n' f ; do
(echo -n "%" ; echo "license '${f}'") >> "%{currenfilelist}"
done <<< ${licensefiles}
```
But it is quite hackish and ugly. An unexpand verb would be much cleaner, and useful elsewhere besides.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/569
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20181007/07cf8454/attachment.html>
More information about the Rpm-maint
mailing list