summaryrefslogtreecommitdiff
path: root/source3/script/extract_allparms.sh
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
commitff63eca1b14f5aa95ee200fe58f88a745666b652 (patch)
treeb9ba0de47853e20dbd6f594d6b49b0f81f76e495 /source3/script/extract_allparms.sh
parent90ed609c4320854bdc99ce7bb78096bbc2a72372 (diff)
downloadsamba-ff63eca1b14f5aa95ee200fe58f88a745666b652.tar.gz
samba-ff63eca1b14f5aa95ee200fe58f88a745666b652.tar.bz2
samba-ff63eca1b14f5aa95ee200fe58f88a745666b652.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. (This used to be commit e8c5e033083440818cb559c61bcf5f9baec511ea)
Diffstat (limited to 'source3/script/extract_allparms.sh')
-rwxr-xr-xsource3/script/extract_allparms.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/script/extract_allparms.sh b/source3/script/extract_allparms.sh
new file mode 100755
index 0000000000..f16068b3fd
--- /dev/null
+++ b/source3/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