【发布时间】:2012-05-01 07:41:18
【问题描述】:
我有一个规格文件。我需要 % 定义一个从系统上的单行文件获取其值的规范变量。
例如
%define path `cat /home/user/path_file`
并且在 path_file 中是一行
/var/www/html/hosts
这部分有效。我说从 RPM BUILD 输出开始,有时${path} 的值实际上是我的命令cat /home/user/path_file,有时该值是应该是 path_file (/var/www/html/hosts) 中的行?
【问题讨论】: