archrepo/parser.awk

18 lines
191 B
Awk

BEGIN {
printit = 0
}
{
if (printit == 1) {
print
printit = 0
}
if (/%FILENAME%/) {
printf "|"
printit = 1
}
if (/%NAME%/ || /%VERSION%/) {
printit = 1
}
}