From 912d70af7dac244d93cb875a824912ba8437cec5 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 22 Nov 2012 14:19:56 -0500 Subject: Use cat in ob_parse_{control,changelog}(). This allows lines to be read from standard input. --- (limited to 'lib') 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}" -- cgit v0.9.1