How do I pipe the output of a shell command into a macro?
Asked by
nightwalk
rpmbuild allows macros to be populated with the output of shell commands by encapsulating the command like so: '%define my_macro %(my_command)'. Shell scripters will no doubt notice the similarity to bash's own command substitution mechanism, $()
More about this, and other macro-related bits can be found on the RPM Macros page:
http://
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- RPM Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- nightwalk
- Solved:
- Last query:
- Last reply:
To post a message you must log in.