Useful script to extract all parameters out of the loadparm.c file
authorJeremy Allison <jra@samba.org>
Thu, 5 Nov 1998 22:08:47 +0000 (22:08 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 5 Nov 1998 22:08:47 +0000 (22:08 +0000)
and sort them into global (G) and service (S) parameters. Useful
for keeping the smb.conf docs up to date.
Jeremy.

source/script/extract_allparms.sh [new file with mode: 0755]

diff --git a/source/script/extract_allparms.sh b/source/script/extract_allparms.sh
new file mode 100755 (executable)
index 0000000..f16068b
--- /dev/null
@@ -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