head 1.2; access; symbols perseant-exfatfs-base-20250801:1.2 perseant-exfatfs-base-20240630:1.2 cjep_sun2x:1.2.0.22 cjep_sun2x-base:1.2 cjep_staticlib_x-base1:1.2 cjep_staticlib_x:1.2.0.20 cjep_staticlib_x-base:1.2 phil-wifi-20200421:1.2 phil-wifi-20200411:1.2 phil-wifi-20200406:1.2 pgoyette-compat-merge-20190127:1.2 pgoyette-compat-20190127:1.2 pgoyette-compat-20190118:1.2 pgoyette-compat-1226:1.2 pgoyette-compat-1126:1.2 pgoyette-compat-1020:1.2 pgoyette-compat-0930:1.2 pgoyette-compat-0906:1.2 pgoyette-compat-0728:1.2 pgoyette-compat-0625:1.2 pgoyette-compat-0521:1.2 pgoyette-compat-0502:1.2 pgoyette-compat-0422:1.2 pgoyette-compat-0415:1.2 pgoyette-compat-0407:1.2 pgoyette-compat-0330:1.2 pgoyette-compat-0322:1.2 pgoyette-compat-0315:1.2 pgoyette-compat:1.2.0.18 pgoyette-compat-base:1.2 perseant-stdc-iso10646:1.2.0.16 perseant-stdc-iso10646-base:1.2 prg-localcount2-base3:1.2 prg-localcount2-base2:1.2 prg-localcount2-base1:1.2 prg-localcount2:1.2.0.14 prg-localcount2-base:1.2 pgoyette-localcount-20170426:1.2 bouyer-socketcan-base1:1.2 pgoyette-localcount-20170320:1.2 bouyer-socketcan:1.2.0.12 bouyer-socketcan-base:1.2 pgoyette-localcount-20170107:1.2 pgoyette-localcount-20161104:1.2 localcount-20160914:1.2 pgoyette-localcount-20160806:1.2 pgoyette-localcount-20160726:1.2 pgoyette-localcount:1.2.0.10 pgoyette-localcount-base:1.2 netbsd-5-2-3-RELEASE:1.1.1.1.42.1 netbsd-5-1-5-RELEASE:1.1.1.1.42.1 yamt-pagecache-base9:1.2 yamt-pagecache-tag8:1.2 tls-earlyentropy:1.2.0.6 tls-earlyentropy-base:1.2 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2 riastradh-drm2-base3:1.2 netbsd-5-2-2-RELEASE:1.1.1.1.42.1 netbsd-5-1-4-RELEASE:1.1.1.1.42.1 netbsd-5-2-1-RELEASE:1.1.1.1.42.1 netbsd-5-1-3-RELEASE:1.1.1.1.42.1 agc-symver:1.2.0.8 agc-symver-base:1.2 tls-maxphys-base:1.2 yamt-pagecache-base8:1.2 netbsd-5-2:1.1.1.1.42.1.0.6 yamt-pagecache-base7:1.2 netbsd-5-2-RELEASE:1.1.1.1.42.1 netbsd-5-2-RC1:1.1.1.1.42.1 yamt-pagecache-base6:1.2 yamt-pagecache-base5:1.2 yamt-pagecache-base4:1.2 netbsd-5-1-2-RELEASE:1.1.1.1.42.1 netbsd-5-1-1-RELEASE:1.1.1.1.42.1 yamt-pagecache-base3:1.2 yamt-pagecache-base2:1.2 yamt-pagecache:1.2.0.4 yamt-pagecache-base:1.2 bouyer-quota2-nbase:1.2 bouyer-quota2:1.2.0.2 bouyer-quota2-base:1.2 matt-nb5-pq3:1.1.1.1.42.1.0.4 matt-nb5-pq3-base:1.1.1.1.42.1 netbsd-5-1:1.1.1.1.42.1.0.2 netbsd-5-1-RELEASE:1.1.1.1.42.1 netbsd-5-1-RC4:1.1.1.1.42.1 netbsd-5-1-RC3:1.1.1.1.42.1 netbsd-5-1-RC2:1.1.1.1.42.1 netbsd-5-1-RC1:1.1.1.1.42.1 netbsd-5-0-2-RELEASE:1.1.1.1 matt-nb5-mips64-premerge-20091211:1.1.1.1 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.1.1.1 matt-nb4-mips64-k7-u2a-k9b:1.1.1.1 matt-nb5-mips64-u1-k1-k5:1.1.1.1 matt-nb5-mips64:1.1.1.1.0.48 netbsd-5-0-1-RELEASE:1.1.1.1 jym-xensuspend-nbase:1.1.1.1 netbsd-5-0:1.1.1.1.0.46 netbsd-5-0-RELEASE:1.1.1.1 netbsd-5-0-RC4:1.1.1.1 netbsd-5-0-RC3:1.1.1.1 netbsd-5-0-RC2:1.1.1.1 jym-xensuspend:1.1.1.1.0.44 jym-xensuspend-base:1.1.1.1 netbsd-5-0-RC1:1.1.1.1 netbsd-5:1.1.1.1.0.42 netbsd-5-base:1.1.1.1 matt-mips64-base2:1.1.1.1 matt-mips64:1.1.1.1.0.40 mjf-devfs2:1.1.1.1.0.38 mjf-devfs2-base:1.1.1.1 netbsd-4-0-1-RELEASE:1.1.1.1 wrstuden-revivesa-base-3:1.1.1.1 wrstuden-revivesa-base-2:1.1.1.1 wrstuden-fixsa-newbase:1.1.1.1 PFIX-2-5-4:1.1.1.1 wrstuden-revivesa-base-1:1.1.1.1 PFIX-2-5-2:1.1.1.1 yamt-pf42-base4:1.1.1.1 yamt-pf42-base3:1.1.1.1 hpcarm-cleanup-nbase:1.1.1.1 yamt-pf42-baseX:1.1.1.1 yamt-pf42-base2:1.1.1.1 wrstuden-revivesa:1.1.1.1.0.36 wrstuden-revivesa-base:1.1.1.1 yamt-pf42:1.1.1.1.0.34 yamt-pf42-base:1.1.1.1 keiichi-mipv6:1.1.1.1.0.32 keiichi-mipv6-base:1.1.1.1 matt-armv6-nbase:1.1.1.1 matt-armv6-prevmlocking:1.1.1.1 wrstuden-fixsa-base-1:1.1.1.1 netbsd-4-0:1.1.1.1.0.30 netbsd-4-0-RELEASE:1.1.1.1 cube-autoconf:1.1.1.1.0.28 cube-autoconf-base:1.1.1.1 netbsd-4-0-RC5:1.1.1.1 netbsd-4-0-RC4:1.1.1.1 netbsd-4-0-RC3:1.1.1.1 netbsd-4-0-RC2:1.1.1.1 netbsd-4-0-RC1:1.1.1.1 matt-armv6:1.1.1.1.0.26 matt-armv6-base:1.1.1.1 matt-mips64-base:1.1.1.1 PFIX-2-4-5:1.1.1.1 hpcarm-cleanup:1.1.1.1.0.24 hpcarm-cleanup-base:1.1.1.1 netbsd-3-1-1-RELEASE:1.1.1.1 netbsd-3-0-3-RELEASE:1.1.1.1 PFIX-2-4-1:1.1.1.1 wrstuden-fixsa:1.1.1.1.0.22 wrstuden-fixsa-base:1.1.1.1 PFIX-2-3-7:1.1.1.1 PFIX-2-3-5:1.1.1.1 abandoned-netbsd-4-base:1.1.1.1 abandoned-netbsd-4:1.1.1.1.0.16 PFIX-2-3-4:1.1.1.1 netbsd-3-1:1.1.1.1.0.18 netbsd-3-1-RELEASE:1.1.1.1 netbsd-3-0-2-RELEASE:1.1.1.1 netbsd-3-1-RC4:1.1.1.1 netbsd-3-1-RC3:1.1.1.1 netbsd-3-1-RC2:1.1.1.1 PFIX-2-3-3:1.1.1.1 netbsd-3-1-RC1:1.1.1.1 netbsd-4:1.1.1.1.0.20 netbsd-4-base:1.1.1.1 PFIX-2-3-2:1.1.1.1 PFIX-2-3-0:1.1.1.1 netbsd-3-0-1-RELEASE:1.1.1.1 PFIX-2-2-10:1.1.1.1 PFIX-2-2-9:1.1.1.1 PFIX-2-2-8:1.1.1.1 netbsd-3-0:1.1.1.1.0.14 netbsd-3-0-RELEASE:1.1.1.1 netbsd-3-0-RC6:1.1.1.1 PFIX-2-2-6:1.1.1.1 netbsd-3-0-RC5:1.1.1.1 netbsd-3-0-RC4:1.1.1.1 netbsd-3-0-RC3:1.1.1.1 netbsd-3-0-RC2:1.1.1.1 netbsd-3-0-RC1:1.1.1.1 netbsd-2-0-3-RELEASE:1.1.1.1 netbsd-2-1:1.1.1.1.0.12 netbsd-2-1-RELEASE:1.1.1.1 netbsd-2-1-RC6:1.1.1.1 netbsd-2-1-RC5:1.1.1.1 netbsd-2-1-RC4:1.1.1.1 netbsd-2-1-RC3:1.1.1.1 netbsd-2-1-RC2:1.1.1.1 netbsd-2-1-RC1:1.1.1.1 PFIX-2-2-5:1.1.1.1 netbsd-2-0-2-RELEASE:1.1.1.1 netbsd-3:1.1.1.1.0.10 netbsd-3-base:1.1.1.1 netbsd-2-0-1-RELEASE:1.1.1.1 netbsd-2:1.1.1.1.0.8 netbsd-2-base:1.1.1.1 netbsd-2-0-RELEASE:1.1.1.1 PFIX-2-1-5:1.1.1.1 netbsd-2-0-RC5:1.1.1.1 netbsd-2-0-RC4:1.1.1.1 netbsd-2-0-RC3:1.1.1.1 netbsd-2-0-RC2:1.1.1.1 netbsd-2-0-RC1:1.1.1.1 PFIX-2-1-4:1.1.1.1 PFIX-2-1-1:1.1.1.1 PFIX-2-1-0:1.1.1.1 netbsd-2-0:1.1.1.1.0.6 netbsd-2-0-base:1.1.1.1 PFIX-2-0-19:1.1.1.1 netbsd-1-6-PATCH002-RELEASE:1.1.1.1 netbsd-1-6-PATCH002:1.1.1.1 netbsd-1-6-PATCH002-RC4:1.1.1.1 netbsd-1-6-PATCH002-RC3:1.1.1.1 netbsd-1-6-PATCH002-RC2:1.1.1.1 netbsd-1-6-PATCH002-RC1:1.1.1.1 netbsd-1-6-PATCH001:1.1.1.1 netbsd-1-6-PATCH001-RELEASE:1.1.1.1 netbsd-1-6-PATCH001-RC3:1.1.1.1 PFIX-2-0-6:1.1.1.1 netbsd-1-6-PATCH001-RC2:1.1.1.1 netbsd-1-6-PATCH001-RC1:1.1.1.1 fvdl_fs64_base:1.1.1.1 PFIX-2-0-0-1:1.1.1.1 PFIX-1-1-12:1.1.1.1 netbsd-1-6-RELEASE:1.1.1.1 netbsd-1-6-RC3:1.1.1.1 netbsd-1-6-RC2:1.1.1.1 netbsd-1-6-RC1:1.1.1.1 PFIX-1-1-11:1.1.1.1 netbsd-1-6:1.1.1.1.0.4 netbsd-1-6-base:1.1.1.1 netbsd-1-5-PATCH003:1.1.1.1 PFIX-1-1-3:1.1.1.1 PFIX-1-1-2:1.1.1.1 PFIX-20010228-pl08:1.1.1.1 netbsd-1-5-PATCH002:1.1.1.1 PFIX-20010228-pl04:1.1.1.1 netbsd-1-5-PATCH001:1.1.1.1 PFIX-20010228-pl03:1.1.1.1 PFIX-20010228-pl02:1.1.1.1 PFIX-20010228-pl01:1.1.1.1 PFIX-20010228:1.1.1.1 PFIX-19991231-pl12:1.1.1.1 netbsd-1-5-RELEASE:1.1.1.1 netbsd-1-5-BETA2:1.1.1.1 netbsd-1-5-BETA:1.1.1.1 netbsd-1-5-ALPHA2:1.1.1.1 netbsd-1-5:1.1.1.1.0.2 netbsd-1-5-base:1.1.1.1 PFIX-19991231-pl08:1.1.1.1 PFIX-19991231-pl07:1.1.1.1 PFIX-19991231-pl06:1.1.1.1 VENEMA:1.1.1; locks; strict; comment @# @; 1.2 date 2009.06.23.18.01.26; author tron; state dead; branches; next 1.1; 1.1 date 2000.04.30.18.52.42; author perry; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2000.04.30.18.52.42; author perry; state Exp; branches 1.1.1.1.42.1 1.1.1.1.48.1; next ; 1.1.1.1.42.1 date 2009.09.15.06.04.31; author snj; state dead; branches; next ; 1.1.1.1.48.1 date 2010.04.21.05.25.36; author matt; state dead; branches; next ; desc @@ 1.2 log @Remove Postfix 2.5.4 distribution. @ text @#!/bin/sh # mansect - extract manual chapter number from source comment # @@(#) mansect.sh 1.2 11/4/89 15:56:37 LANG= : process arguments while : do case $1 in [0-9]) SECT=$1;; -) LANG=$1; B='[#:]';; -a) LANG=$1; B='#';; -c) LANG=$1; B='\/\*';; -f) LANG=$1; B='[Cc]';; -m) LANG=$1; B='#';; -n|-t) LANG=$1; B='\\"';; -p) LANG=$1; B='{';; -r) LANG=$1; B='#';; -C) LANG=$1; B=$2; shift;; -*) ERROR="unknown option: $1"; break;; "") ERROR="missing file argument"; break;; *) break;; esac shift done # check error status case $ERROR in "") ;; *) echo "$0: $ERROR" 1>&2 echo "usage: $0 [-|-a|-c|-f|-m|-n|-p|-t|-r|-C] file(s)" 1>&2; exit 1;; esac # set up for file suffix processing case $LANG in "") sh='[:#]'; r='#'; rh=$r; awk='#'; mk='#'; c='\/\*'; d=$c; h=$c; y=$c; l=$c; f='[Cc]'; fh=$f; p='{'; ph=$p; ms='\\"'; nr=$ms; mn=$ms; man=$ms; esac # extract chapter number from file for i do case $LANG in "") eval B\="\$`expr $i : '.*\.\([^.]*\)$'`" test "$B" || { echo "$0: unknown suffix: '$i'; assuming c" 1>&2; B=$c; } esac sed -n ' /^'"$B"'++/,/^'"$B"'--/{ s/[ ]*$// /^'"$B"' NAME/{ N s/^.*\n'"$B"'.*[ ]\([0-9]\)[ ]*$/\1/p q } } ' $i done exit #++ # NAME # mansect 1 # SUMMARY # extract manual chapter number from comment # PACKAGE # sdetools # SYNOPSIS # mansect [-|-a|-c|-f|-m|-m|-n|-p|-t|-r|-C] file(s) # DESCRIPTION # \fImansect\fR extracts the manual chapter number from # source file comments in the style of \fInewsrc(1)\fR. # Typically, \fImansect\fR is integrated with \fImake(1)\fR scripts. # # Source files are processed in the indicated order; if no # files are specified the command produces no output. # # The source file language can be specified through a command-line # option, or can be implied by the filename suffix. # The expected start-of-comment symbol is shown in the last column. # # .nf # .ft C option suffix language comment - .sh shell [:#] -a .awk awk # -c .c .h .l .y c lex yacc /* -f .f .fh fortran [Cc] -m .mk make # -n .man .mn .ms .nr nroff troff \\" -p .p .ph pascal { -r .r .rh ratfor # -C any language next argument # .ft # COMMANDS # sh(1), sed(1) # SEE ALSO # newsrc(1), xman(1) # The earlier commands new(1), mod(1), mkman(1) and dssman(1) # by Ruud Zwart and Ben Noordzij (Erasmus University, Rotterdam) # DIAGNOSTICS # The program complaints if an unknown language is specified # of if the language cannot be deduced from the file suffix. # AUTHOR(S) # W.Z. Venema # Eindhoven University of Technology # Department of Mathematics and Computer Science # Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands # CREATION DATE # Sun Feb 15 21:40:28 GMT+1:00 1987 # LAST MODIFICATION # 11/4/89 15:56:37 # VERSION/RELEASE # 1.2 #-- @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @Initial import of raw distribution from Weitse Venema @ text @@ 1.1.1.1.48.1 log @sync to netbsd-5 @ text @@ 1.1.1.1.42.1 log @Apply patch (requested by tron in ticket #944): Update Postfix to 2.6.5. @ text @@