summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-07-14 16:33:59 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-07-14 16:33:59 (EDT)
commit38093c7e6c3ff98de7b00ef390c491e6716940cb (patch)
treecd3587927be624f67206f927393d6c0a4138e5bc
parentacb7fb29fd8d47a9f6fa6acc0dfead5dec07a26f (diff)
include: Print parsed changes files.
-rw-r--r--lib/cmd/include.sh19
1 files changed, 18 insertions, 1 deletions
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
}