[Rpm-maint] [rpm-software-management/rpm] Including a file, expanding the macros in it and writing the result to another file? (Discussion #2912)
Daan De Meyer
notifications at github.com
Thu Feb 15 11:00:53 UTC 2024
I'm trying to include a file with macros in it, expand those macros and write the result to another file. My last attempt that doesn't work is the following:
```
echo "%{expand:%include %{SOURCE203}}" > expanded
```
If SOURCE203 contains the following:
```
%{_unitdir}/systemd-coredump.socket
%{_unitdir}/systemd-coredump at .service
```
I want "expanded" to contain:
```
/usr/lib/systemd/system/systemd-coredump.socket
/usr/lib/systemd/system/systemd-coredump at .service
```
Anyone able to help me out?
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/2912
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/repo-discussions/2912 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240215/dce12962/attachment.html>
More information about the Rpm-maint
mailing list