From 3bc9429dad01922a6d8198657d521fca6ba350df Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 25 Oct 2012 23:50:29 -0400 Subject: Support comments in control files. --- (limited to 'lib') diff --git a/lib/control.sh b/lib/control.sh index 196d952..04a0cba 100644 --- a/lib/control.sh +++ b/lib/control.sh @@ -59,6 +59,9 @@ ob_parse_control() if [ -z "$(echo ${_obpco_line})" ]; then _ob_parse_control_error "${_obpco_file}" "${_obpco_line_nr}" \ 'control_empty_line' + elif [ "${_obpco_line#\#}" != "${_obpco_line}" ]; then + # Comment. + : elif [ "${_obpco_line# }" = "${_obpco_line}" ]; then # "Name: Value" line. if [ -n "${_obpco_name}" ]; then -- cgit v0.9.1