mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
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 e8c5e03308
)
This commit is contained in:
2
source3/script/extract_allparms.sh
Executable file
2
source3/script/extract_allparms.sh
Executable file
@ -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
|
Reference in New Issue
Block a user