From ff63eca1b14f5aa95ee200fe58f88a745666b652 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 5 Nov 1998 22:08:47 +0000 Subject: 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) --- source3/script/extract_allparms.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 source3/script/extract_allparms.sh (limited to 'source3/script') 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 -- cgit