archrepo/parser.awk

18 lines
191 B
Awk
Raw Permalink Normal View History

2022-02-13 12:18:26 +01:00
BEGIN {
printit = 0
}
{
if (printit == 1) {
print
printit = 0
}
if (/%FILENAME%/) {
printf "|"
printit = 1
}
if (/%NAME%/ || /%VERSION%/) {
printit = 1
}
}