fix-man-pages.sh 259 B

1234567891011
  1. #!/bin/bash
  2. # remove adjacent blank lines
  3. sed -i 's/^[\t\ ]*$//;/./,/^$/!d' man/man*/*.[58]
  4. #sed -i 's/sntp\.1/sntp\.8/' man/man1/sntp.1
  5. #mv man/man1/sntp.1 man/man8/sntp.8
  6. # fix section numbers
  7. sed -i 's/\(\.TH[a-zA-Z ]*\)[1-9]\(.*\)/\18\2/' man/man8/*.8