git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9722a98
)
Useful script to extract all parameters out of the loadparm.c file
author
Jeremy Allison
<jra@samba.org>
Thu, 5 Nov 1998 22:08:47 +0000
(22:08 +0000)
committer
Jeremy 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]
patch
|
blob
diff --git a/source/script/extract_allparms.sh
b/source/script/extract_allparms.sh
new file mode 100755
(executable)
index 0000000..
f16068b
--- /dev/null
+++ b/
source/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