Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Postfix/mantools/   (Postfix Mailserver Version 3.11©)  Datei vom 2.1.2004 mit Größe 1 kB image not shown  

Quelle  makepostconf

  Sprache: HTML
 

Spracherkennung für: vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

#!/usr/bin/perl

# Extract parameter definitions from the sample-mumble.cf files in
# order to build the postconf raw data file from which everything
# will be regenerated.

$POSTCONF="postconf";

# Suck in the parameter definition text. Skip non-parameter blocks.
# Strip all but the body text (i.e. strip off the non-comment line
# that shows the default, since we will use postconf output to supply
# the actual values).

while(<>) {
    if (/^[^#]/) {
 if ($param_name && $saved_text) {
     $saved_text =~ s/^(\n|#|\s)+//;
     $saved_text =~ s/(\n|#|\s)+$//;
     $saved_text =~ s/^# ?/\n/;
     $saved_text =~ s/\n# ?/\n/g;
     $definition{$param_name} = $saved_text;
     $param_name = $saved_text = "";
 }
 next;
    }
    if (/^#/ && $param_name) {
 $saved_text .= $_;
 next;
    }
    if (/^# The (\S+) (configuration )?parameter/) {
 $param_name = $1;
 $saved_text = $_;
    }
}

# Read all the default parameter values. This also provides us with
# a list of all the parameters that postconf knows about.

open(POSTCONF, "$POSTCONF -d|") || die "cannot run $POSTCONF: !$\n";
while(<POSTCONF>) {
    chop;
    if (($name, $value) = split(/\s+=\s+/, $_, 2)) {
 $defaults{$name} = $value;
    } else {
 warn "unexpected $POSTCONF output: $_\n";
    }
}
close(POSTCONF) || die "$POSTCONF failed: $!\n"; 

# Print all parameter definition text that we found, and warn about
# missing definition text.

for $param_name (sort keys %defaults) {
   if (defined($definition{$param_name})) {
 print "#DEFINE $param_name\n\n";
 print $definition{$param_name};
 print "\n\n";
   } else {
 warn "No definition found for $param_name\n";
   }
}

¤ Dauer der Verarbeitung: 0.16 Sekunden  (vorverarbeitet am  2026-08-08) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.