5 # For each sysctl, repeat:
6 # if it has a short description
7 # sysctl.sh name "descr"
9 # write its name to tunables.TODO with 'name missing description'
10 # Note: This functionality is to point out which sysctls/tunables
11 # have no description in the source. This may be helpful for those
12 # wishing to document the sysctls.
16 if [ X"${name}" = X"" ]; then
17 echo "usage: $(basename $0) sysctl-name" >&2
22 # Look up $name in tunables.mdoc
25 sed -ne "/^${name}[[:space:]]*$/,/^---[[:space:]]*$/p" | \
26 sed -e '/^---[[:space:]]*$/d' | \
30 if [ X"${tmpname}" = X"" ]; then \
33 read type value _junk; \
35 if [ X"${type}" = X"" ]; then \
37 echo "ERROR: Missing type for ${name}" >&2 ; \
39 if [ X"${value}" = X"" ]; then \
41 echo "ERROR: Missing default for ${name}" >&2 ; \
44 echo ".It Va ${tmpname}" ; \
45 if [ X"${type}" != X"" ]; then \
46 echo ".Pq Vt ${type}" ; \
48 grep -v '^[[:space:]]*$' | \
49 sed -e "s/@default@/${value}/g" | \
50 sed -e "s/@type@/${type}/g" ; \