X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=man%2Fmanlinks.sed;h=09b055f2fa04587dcb10dd2ada30595446961263;hp=78055b4c7c7dc217e6bb6670e5567bb45f7a10a7;hb=fae162795e065e5901068152e91f2962b6b247f3;hpb=25358bc041a5566ce2de4c9c792837e552b35671 diff --git a/man/manlinks.sed b/man/manlinks.sed index 78055b4c..09b055f2 100644 --- a/man/manlinks.sed +++ b/man/manlinks.sed @@ -1,6 +1,7 @@ -# $Id: manlinks.sed,v 1.13 2008/01/19 23:31:17 tom Exp $ +# $Id: manlinks.sed,v 1.15 2021/01/05 20:30:00 tom Exp $ ############################################################################## -# Copyright (c) 2000-2003,2008 Free Software Foundation, Inc. # +# Copyright 2020,2021 Thomas E. Dickey # +# Copyright 2000-2003,2008 Free Software Foundation, Inc. # # # # Permission is hereby granted, free of charge, to any person obtaining a # # copy of this software and associated documentation files (the "Software"), # @@ -40,10 +41,14 @@ s/^\.IX// s/\\f.//g s/[:,]/ /g # +# ignore C-style comments +s%/\*.*\*/%% +# # eliminate unnecessary whitespace, convert multiple blanks to single space s/^[ ][ ]*// s/[ ][ ]*$// s/[ ][ ]*/ /g +/^$/d # # convert ".SH" into a more manageable form s/\.SH[ ][ ]*/.SH_(/