summaryrefslogtreecommitdiffstats
path: root/source/script
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-11-05 22:08:47 +0000
committerJeremy Allison <jra@samba.org>1998-11-05 22:08:47 +0000
commite8c5e033083440818cb559c61bcf5f9baec511ea (patch)
treece73774a5f320c9828be72c5233a063a07dd5fc9 /source/script
parent9722a98f8f24ef528b02bfb42f53ef9d07e62aa1 (diff)
downloadsamba-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-xsource/script/extract_allparms.sh2
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