diff options
author | P. J. McDermott <pjm@nac.net> | 2012-11-22 14:19:56 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-11-22 14:19:56 (EST) |
commit | 912d70af7dac244d93cb875a824912ba8437cec5 (patch) | |
tree | 3fd9de419cb6cd40c8ed0ac4873687205fdb6577 /lib | |
parent | a3530e29612b21e965fd869a47c44fc2e6d56d5a (diff) |
Use cat in ob_parse_{control,changelog}().
This allows lines to be read from standard input.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/changelog.sh | 4 | ||||
-rw-r--r-- | lib/control.sh | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/changelog.sh b/lib/changelog.sh index db69cfd..2f1515f 100644 --- a/lib/changelog.sh +++ b/lib/changelog.sh @@ -152,7 +152,9 @@ ${_obpch_blank_lines}${_obpch_line}" 'changelog_bad_line' _obpch_blank_lines= fi - done <"${_obpch_file}" + done <<-EOF + $(cat "${_obpch_file}") + EOF if [ "${_obpch_expect}" != 'next_or_eof' ]; then _ob_parse_changelog_error "${_obpch_file}" "${_obpch_line_nr}" \ diff --git a/lib/control.sh b/lib/control.sh index d480c22..4c38583 100644 --- a/lib/control.sh +++ b/lib/control.sh @@ -115,7 +115,9 @@ ob_parse_control() _obpco_value="${_obpco_value} ${_obpco_line# }" fi - done <"${_obpco_file}" + done <<-EOF + $(cat "${_obpco_file}") + EOF if [ -n "${_obpco_name}" ]; then OB_CONTROL_NAME="${_obpco_name}" |