3 ## This is a simple script written by Herb Lewis @ SGI <herb@samba.org>
4 ## for reporting which parameters where supported by loadparm.c but
5 ## not by SWAT I just thought it looked fun and might be of interest to others
14 $filename = "/usr3/samba20/samba/source/param/loadparm.c";
17 open (INFILE,$filename) || die "unable to open $filename\n";
18 while (not eof(INFILE))
21 last if ( /^static struct parm_struct parm_table/) ;
23 print "Option Name Global Page Share Page Printer Page\n";
24 print "---------------------------------------------------------------------";
25 while (not eof(INFILE))
29 @fields = split(/,/,$_);
30 next if not ($fields[0] =~ /^.*{"/);
31 $fields[0] =~ s/.*{"//;
33 if ($fields[3] eq $lastone) {
34 print " $fields[0]\n";
37 $lastone = $fields[3];
38 $fields[2] =~ s/^\s+//;
39 $fields[2] =~ s/\s+$//;
40 $fields[2] =~ s/}.*$//;
41 $fields[6] =~ s/^\s+//;
42 $fields[6] =~ s/\s+$//;
43 $fields[6] =~ s/}.*$//;
44 if ($fields[2] =~ /P_SEPARATOR/) {
45 print "\n****************$fields[0]\n";
49 if ($fields[6] =~ /FLAG_DEPRECATED/) {
50 print "*$fields[0]".' 'x(31-length($fields[0]));
53 print "$fields[0]".' 'x(32-length($fields[0]));
56 if (($fields[2] =~ /P_GLOBAL/) || ($fields[6] =~ /FLAG_GLOBAL/)) {
57 if ($fields[6] =~ /FLAG_GLOBAL/) {
63 if ($fields[6] =~ /FLAG_BASIC/) {
73 if ($fields[6] =~ /FLAG_SHARE/) {
74 if ($fields[6] =~ /FLAG_BASIC/) {
84 if ($fields[6] =~ /FLAG_PRINT/) {
85 if ($fields[6] =~ /FLAG_BASIC/) {