From 5e651400abf1e87dbfed9fde9ded18eec8bbcd87 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Tue, 15 Oct 2013 21:30:49 +0200 Subject: bin/build-docs: Build "negate.md" and "urlize.md" Also build the documentation for "negate" and "urlize". diff --git a/bin/build-docs b/bin/build-docs index f3e29c5..ee8811e 100755 --- a/bin/build-docs +++ b/bin/build-docs @@ -42,20 +42,23 @@ build_manpages() dst_dir=$1 man_dir=$2 - find "$man_dir" -name 'check_*.md' -exec rm -f '{}' '+' - find "$dst_dir/libexec" -name 'check_*' | while read plugin_path + for pattern in 'check_*' 'negate' 'urlize' do - plugin_name=${plugin_path##*/} - man_file="$man_dir/${plugin_name}.md" + find "$man_dir" -name "$pattern" -exec rm -f '{}' '+' + find "$dst_dir/libexec" -name "$pattern" | while read path + do + name=${path##*/} + man_file="$man_dir/${name}.md" - { - echo "title: $plugin_name" - echo 'parent: Manpages' - echo '---' - echo "# The $plugin_name Plugin" - echo - $plugin_path --help | sed 's/./ &/' - } >"$man_file" + { + echo "title: $name" + echo 'parent: Manpages' + echo '---' + echo "# The $name Plugin" + echo + $path --help | sed 's/./ &/' + } >"$man_file" + done done } -- cgit v0.10-9-g596f