summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2018-12-27 03:16:27 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2018-12-27 03:16:27 (EST)
commit43e3bf44dc869d625e9bbccb2355b3ea2094f815 (patch)
treeb226c42dee7c19b9d194f57fc6b934a8b09369b0 /tools
parent32af907e3addd630df593bbd561fcfad2defef5f (diff)
tools/shman.sh: Rename and reformat @pure command
Diffstat (limited to 'tools')
-rwxr-xr-xtools/shman.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/shman.sh b/tools/shman.sh
index 34c607e..8e4cfdc 100755
--- a/tools/shman.sh
+++ b/tools/shman.sh
@@ -88,6 +88,7 @@ gen_doc_func()
local sect_ret=
local sect_out=
local sect_err=
+ local pure=
local sect_attr=
# TODO: SYNOPSIS
@@ -140,9 +141,14 @@ gen_doc_func()
'stderr')
sect_err=".SH STDERR${LF}${args}"
;;
- 'purity')
- sect_attr=".SH ATTRIBUTES"
- sect_attr="${sect_attr}${LF}${args}"
+ 'pure')
+ read -r pure desc <<-EOF
+ ${args}
+ EOF
+ sect_attr=".SH ATTRIBUTES${LF}"
+ sect_attr="${sect_attr}.TP${LF}"
+ sect_attr="${sect_attr}Subshell-safe: ${pure}"
+ sect_attr="${sect_attr}${LF}${desc}"
;;
esac
done <<-EOF