generate new type listing

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-04-06 09:32:11 +02:00
parent d8eccddad0
commit d3a376545f
1 changed files with 8 additions and 3 deletions

View File

@ -21,6 +21,8 @@
# Generate manpage that lists available types # Generate manpage that lists available types
# #
FIXME: __ breaks again in asciidoc!
__cdist_pwd="$(pwd -P)" __cdist_pwd="$(pwd -P)"
__cdist_mydir="${0%/*}"; __cdist_mydir="${0%/*}";
__cdist_abs_mydir="$(cd "$__cdist_mydir" && pwd -P)" __cdist_abs_mydir="$(cd "$__cdist_mydir" && pwd -P)"
@ -133,12 +135,15 @@ tmp_dir::
TYPES TYPES
----- -----
The following types are available: The following types are available:
eof eof
for type in man7/cdist-type__*.text; do for type in man7/cdist-type__*.text; do
name_1="${type#man7/}"; man="${name_1%.text}(7)" no_dir="${type#man7/}";
name_2="${name_1%.7}"; no_type="${no_dir#cdist-type}";
name="$name_2" name="${no_type%.text}";
man="${no_dir%.text}(7)"
echo "- $name" "($man)" echo "- $name" "($man)"
done done