Including a file, expanding the macros in it and writing the result to another file? #2912
Unanswered
DaanDeMeyer
asked this question in
Q&A
Replies: 1 comment
-
This should do the trick:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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:
If SOURCE203 contains the following:
I want "expanded" to contain:
All rpm macros defined in the spec file should be taken into account so shelling out to
rpm --eval
won't work I think.Anyone able to help me out?
Beta Was this translation helpful? Give feedback.
All reactions