summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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
}