Skip to content

Commit

Permalink
Makefile: fix sed
Browse files Browse the repository at this point in the history
  • Loading branch information
sighook committed Dec 28, 2023
1 parent 7a0a443 commit c197812
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ man: pod
@: prepare temporary pod file for future manual page:
@: 1. remove section numbering from '=head[1-4]' and 'L</"...">'
@: 2. remove '=ff' pdf extension
sed -e 's/^(=head[12])\s+([0-9\.]+)\s+(.*)/\1 \3/' \
sed -r -e 's/^(=head[12])\s+([0-9\.]+)\s+(.*)/\1 \3/' \
-e 's/^(=head[34])\s+B<([0-9\.]+)\s+(.*)>/\1 B<\3>/' \
-e 's/L<\/"([0-9\.]+)\s+(.*)">/L<\/"\2\">/' \
-e 's/^=ff$$//' \
-r ${POD} > MAN.${POD}
-e 's/^=ff$$//' ${POD} > MAN.${POD}
@: 3. check generated pod for syntax errors
podchecker MAN.${POD}
@: 4. prepare manual page
Expand Down

0 comments on commit c197812

Please sign in to comment.