Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Android/development/development/tools/mergetool/   (Android Betriebssystem Version 17©)  Datei vom 26.5.2026 mit Größe 514 B image not shown  

Quelle  split3.awk   Sprache: unbekannt

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

#!/usr/bin/awk -f

# Supports only "simple" diff3 style conflicts. Criss-cross conflicts are not supported.

BEGIN {
  if (TARGET !~ /^(LOCAL|BASE|REMOTE)$/) {
    print "Usage: ./split3.awk <file_with_diff3_conflict_markers -v TARGET={LOCAL,BASE,REMOTE}"
    exit 1
  }

  PRINT = 1
}

/^<{7}( .+)?$/ {
  PRINT = (TARGET == "LOCAL")
  next
}

/^\|{7}( .+)?$/ {
  PRINT = (TARGET == "BASE")
  next
}

/^={7}( .+)?$/ {
  PRINT = (TARGET == "REMOTE")
  next
}

/^>{7}( .+)?$/ {
  PRINT = 1
  next
}

PRINT { print }

[Dauer der Verarbeitung: 0.2 Sekunden, vorverarbeitet 2026-06-26]