]> andersk Git - moira.git/commitdiff
Remove extra entries that are no longer in /afs/athena/service/afs_data
authorprobe <probe>
Wed, 16 Jun 1993 10:27:00 +0000 (10:27 +0000)
committerprobe <probe>
Wed, 16 Jun 1993 10:27:00 +0000 (10:27 +0000)
incremental/afs_nightly.pl

index d717ad2f9452cb5563825d44fac0367e59e0b61f..0a3b6349feedac942acabaed8878e279e5600764 100644 (file)
@@ -15,6 +15,15 @@ if (open(TMP,"/afs/athena.mit.edu/service/afs_data")) {
 }
 
 chop(@new_data);
+
+for (@new_data) {
+    ($c,$as,$ap) = split(/\s+/,$_);
+    ($as) = gethostbyname($as) unless ($c =~ /^\#/);
+    $c =~ tr/a-z/A-Z/;
+    $as =~ tr/a-z/A-Z/;
+    $ap =~ s:^([^/]):/vicep\1:;
+    $ok{"$c $as $ap"} = 1;
+}
 for (@new_data) {
     $as = $ap = 0;
     if ($_ !~ /^\#/) {
@@ -30,6 +39,7 @@ for (@new_data) {
     truncate(SRV, 0);
     for (@afs_data) {
        ($c2,$as2,$ap2) = split(/\s+/,$_);
+       next unless ($c2 =~ /^\#/ || $ok{"$c2 $as2 $ap2"});
        print SRV $_ unless ($c eq $c2 && $as eq $as2 && $ap eq $ap2);
     }
     &afs_unlock;
This page took 0.156382 seconds and 5 git commands to generate.