1
0
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:
Jeremy Allison
1998-11-05 22:08:47 +00:00
parent 90ed609c43
commit ff63eca1b1

View 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