diff options
author | rafan <rafan@FreeBSD.org> | 2007-01-20 07:32:02 +0000 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2007-01-20 07:32:02 +0000 |
commit | a35ca3ffa07d253f729abfe49e019438658f9333 (patch) | |
tree | 1351fbc560fb430cd5e493287f4950d583f23af3 /contrib/ncurses/man/make_sed.sh | |
parent | 61ebc4fdc6ffaff63296473b0fef0ff5e17067f7 (diff) | |
parent | de9cbef68d4c3ea6cd003ce086e2d3487600ace7 (diff) | |
download | FreeBSD-src-a35ca3ffa07d253f729abfe49e019438658f9333.zip FreeBSD-src-a35ca3ffa07d253f729abfe49e019438658f9333.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r166124,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/ncurses/man/make_sed.sh')
-rwxr-xr-x | contrib/ncurses/man/make_sed.sh | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/contrib/ncurses/man/make_sed.sh b/contrib/ncurses/man/make_sed.sh index c6c37c2..f2afac9 100755 --- a/contrib/ncurses/man/make_sed.sh +++ b/contrib/ncurses/man/make_sed.sh @@ -1,7 +1,7 @@ #!/bin/sh -# $Id: make_sed.sh,v 1.5 1998/02/11 12:13:48 tom Exp $ +# $Id: make_sed.sh,v 1.9 2005/07/16 18:15:31 tom Exp $ ############################################################################## -# Copyright (c) 1998 Free Software Foundation, Inc. # +# Copyright (c) 1998-2003,2005 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"), # @@ -28,7 +28,7 @@ # authorization. # ############################################################################## # -# Author: Thomas E. Dickey <dickey@clark.net> 1997 +# Author: Thomas E. Dickey 1997-2005 # # Construct a sed-script to perform renaming within man-pages. Originally # written in much simpler form, this one accounts for the common cases of @@ -47,7 +47,7 @@ RESULT=result$$ rm -f $UPPER $SCRIPT $RESULT trap "rm -f $COL.* $INPUT $UPPER $SCRIPT $RESULT" 0 1 2 5 15 fgrep -v \# $1 | \ -sed -e 's/[ ]\+/ /g' >$INPUT +sed -e 's/[ ][ ]*/ /g' >$INPUT for F in 1 2 3 4 do @@ -63,7 +63,7 @@ paste $COL.* | \ sed -e 's/^/s\/\\</' \ -e 's/$/\//' >$UPPER -# Do the TH lines +echo "# Do the TH lines" >>$RESULT sed -e 's/\//\/TH /' \ -e 's/ / /' \ -e 's/ / ""\/TH /' \ @@ -71,7 +71,7 @@ sed -e 's/\//\/TH /' \ -e 's/\/$/ ""\//' \ $UPPER >>$RESULT -# Do the embedded references +echo "# Do the embedded references" >>$RESULT sed -e 's/</<fB/' \ -e 's/ /\\\\fR(/' \ -e 's/ /)\/fB/' \ @@ -79,5 +79,11 @@ sed -e 's/</<fB/' \ -e 's/\/$/)\//' \ $UPPER >>$RESULT +echo "# Do the \fBxxx\fR references in the .NAME section" >>$RESULT +sed -e 's/\\</^\\\\fB/' \ + -e 's/ [^ ]* /\\\\f[RP] -\/\\\\fB/' \ + -e 's/ .*$/\\\\fR -\//' \ + $UPPER >>$RESULT + # Finally, send the result to standard output cat $RESULT |