ctpv/deptable/roff.sed

22 lines
199 B
Sed
Raw Normal View History

2022-07-25 19:11:40 +02:00
#!/bin/sed -f
# Add header
1i\
.TS\
allbox;\
lb lb\
l li .\
File type\tPrograms
2022-09-09 19:34:28 +02:00
# Substitute '-' with '\-'
:a
s/\(\t.*[^\\]\)-/\1\\-/
ta
2022-07-25 19:11:40 +02:00
# Format rows
s/\t/&T{\n/; s/$/\nT}/
# Add footer
$a\
.TE