From 9aa60b3b1d21ac820127312014a4db6ce5497b02 Mon Sep 17 00:00:00 2001
From: Nico Schottelius <nico@kr.ethz.ch>
Date: Sun, 20 Mar 2011 00:30:19 +0100
Subject: [PATCH] Add manpage for cdist-type-build-emulation

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
---
 Makefile                                |  1 +
 doc/changelog                           |  3 +++
 doc/dev/todo/niconext                   |  4 +++
 doc/man/cdist-type-build-emulation.text | 33 +++++++++++++++++++++++++
 4 files changed, 41 insertions(+)
 create mode 100644 doc/man/cdist-type-build-emulation.text

diff --git a/Makefile b/Makefile
index 6c28a88b..391190ae 100644
--- a/Makefile
+++ b/Makefile
@@ -31,6 +31,7 @@ MANSRC=$(MANDIR)/cdist.text						\
 	$(MANDIR)/cdist-run-remote.text				\
 	$(MANDIR)/cdist-stages.text					\
 	$(MANDIR)/cdist-type.text						\
+	$(MANDIR)/cdist-type-build-emulation.text \
 	$(MANDIR)/cdist-type-template.text			\
 
 
diff --git a/doc/changelog b/doc/changelog
index 12e3c8f1..a10d9de5 100644
--- a/doc/changelog
+++ b/doc/changelog
@@ -1,3 +1,6 @@
+1.3.1:
+	* Document cdist-type-build-emulation
+
 1.3.0: 2011-03-20
 	* Add support for local and remote code generation and execution
 	* Bugfix: Remove obsolete $@ call in cdist-remote-explorer-run
diff --git a/doc/dev/todo/niconext b/doc/dev/todo/niconext
index ce8412de..a90df593 100644
--- a/doc/dev/todo/niconext
+++ b/doc/dev/todo/niconext
@@ -1 +1,5 @@
 Ensure bin/* is documented
+   - cdist-remote-code-run-all
+   - cdist-remote-explorer-run
+   - cdist-type-emulator
+
diff --git a/doc/man/cdist-type-build-emulation.text b/doc/man/cdist-type-build-emulation.text
new file mode 100644
index 00000000..81c56e7c
--- /dev/null
+++ b/doc/man/cdist-type-build-emulation.text
@@ -0,0 +1,33 @@
+cdist-type-build-emulation(1)
+=============================
+Nico Schottelius <nico-cdist--@--schottelius.org>
+
+
+NAME
+----
+cdist-type-build-emulation - Build executables for types
+
+
+SYNOPSIS
+--------
+cdist-type-build-emulation OUT_DIR
+
+
+DESCRIPTION
+-----------
+cdist-type-build-emulation creates a link to cdist-type-emulator
+for every TYPE. These links are placed in a OUT_DIR, which
+is prepended into $PATH. This way the user can use TYPE in the
+manifests like any other executable.
+
+
+SEE ALSO
+--------
+- cdist(7)
+- cdist-type-emulator(1)
+
+
+COPYING
+-------
+Copyright \(C) 2011 Nico Schottelius. Free use of this software is
+granted under the terms of the GNU General Public License version 3 (GPLv3).