From 38093c7e6c3ff98de7b00ef390c491e6716940cb Mon Sep 17 00:00:00 2001
From: P. J. McDermott <pjm@nac.net>
Date: Sun, 14 Jul 2013 16:33:59 -0400
Subject: include: Print parsed changes files.

---
(limited to 'lib')

diff --git a/lib/cmd/include.sh b/lib/cmd/include.sh
index 37b01ce..4d1e8c5 100644
--- a/lib/cmd/include.sh
+++ b/lib/cmd/include.sh
@@ -17,7 +17,24 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+use control
+
 cmd_include_main()
 {
-	printf 'Not implemented\n'
+	local changes
+
+	for changes in "${@}"; do
+		parse_control "${changes}" cmd_include_changes_field '' ''
+	done
+}
+
+cmd_include_changes_field()
+{
+	local name="${1}"
+	local value="${2}"
+
+	printf '%s:' "${name}"
+	IFS="${LF}"
+	printf ' %s\n' ${value}
+	unset IFS
 }
--
cgit v0.9.1