diff options
author | Jeremy Allison <jra@samba.org> | 1998-11-05 22:08:47 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-11-05 22:08:47 +0000 |
commit | e8c5e033083440818cb559c61bcf5f9baec511ea (patch) | |
tree | ce73774a5f320c9828be72c5233a063a07dd5fc9 /source/script | |
parent | 9722a98f8f24ef528b02bfb42f53ef9d07e62aa1 (diff) | |
download | samba-e8c5e033083440818cb559c61bcf5f9baec511ea.tar.gz samba-e8c5e033083440818cb559c61bcf5f9baec511ea.tar.xz samba-e8c5e033083440818cb559c61bcf5f9baec511ea.zip |
Useful script to extract all parameters out of the loadparm.c file
and sort them into global (G) and service (S) parameters. Useful
for keeping the smb.conf docs up to date.
Jeremy.
Diffstat (limited to 'source/script')
-rwxr-xr-x | source/script/extract_allparms.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/script/extract_allparms.sh b/source/script/extract_allparms.sh new file mode 100755 index 00000000000..f16068b3fdc --- /dev/null +++ b/source/script/extract_allparms.sh @@ -0,0 +1,2 @@ +#!/bin/sh +grep '{".*P_[GL]' param/loadparm.c | sed -e 's/&.*$//g' -e 's/",.*P_LOCAL.*$/ S/' -e 's/",.*P_GLOBAL.*$/ G/' -e 's/^ .*{"//g' | sort -f |