From qboosh at pld-linux.org Wed Feb 1 16:22:07 2006 From: qboosh at pld-linux.org (Jakub Bogusz) Date: Wed, 1 Feb 2006 16:22:07 +0100 Subject: SPECS: seamonkey.spec - adaptarized In-Reply-To: References: Message-ID: <20060201152207.GC15580@gruby.cs.net.pl> On Wed, Feb 01, 2006 at 04:17:38PM +0100, spider wrote: > Author: spider Date: Wed Feb 1 15:17:38 2006 GMT > Module: SPECS Tag: HEAD > ---- Log message: > - adaptarized > -%{?with_heimdal:%attr(755,root,root) %{_libdir}/%{name}/components/libnegotiateauth.so} > +%attr(755,root,root) %{?with_heimdal:%attr(755,root,root) %{_libdir}/%{name}/components/libnegotiateauth.so} Khem... broken adapter? -- Jakub Bogusz http://qboosh.cs.net.pl/ From spider at linux.pl Wed Feb 1 16:35:34 2006 From: spider at linux.pl (Piotr Skwarna) Date: Wed, 01 Feb 2006 16:35:34 +0100 Subject: SPECS: seamonkey.spec - adaptarized In-Reply-To: <20060201152207.GC15580@gruby.cs.net.pl> References: <20060201152207.GC15580@gruby.cs.net.pl> Message-ID: <43E0D546.1020807@linux.pl> Jakub Bogusz napisa?(a): > > > Khem... broken adapter? > > > znaczy sie ze adapter generuje blednie ? -- Pozdrawiam Piotr Skwarna | spider at linux.pl From ankry at green.mif.pg.gda.pl Wed Feb 1 17:45:09 2006 From: ankry at green.mif.pg.gda.pl (Andrzej Krzysztofowicz) Date: Wed, 1 Feb 2006 17:45:09 +0100 (CET) Subject: SPECS: seamonkey.spec - adaptarized In-Reply-To: <43E0D546.1020807@linux.pl> from "Piotr Skwarna" at Feb 01, 2006 04:35:34 PM Message-ID: <200602011645.k11Gj9Rn012364@green.mif.pg.gda.pl> Piotr Skwarna wrote: > > Jakub Bogusz napisa?(a): > > > > Khem... broken adapter? > > > znaczy sie ze adapter generuje blednie ? en, please. Of course, it happens. Quite often. You always need to verify it. -- ======================================================================= Andrzej M. Krzysztofowicz ankry at mif.pg.gda.pl phone (48)(58) 347 14 61 Faculty of Applied Phys. & Math., Gdansk University of Technology From glen at delfi.ee Thu Feb 2 00:46:52 2006 From: glen at delfi.ee (Elan =?iso-8859-1?q?Ruusam=E4e?=) Date: Thu, 2 Feb 2006 01:46:52 +0200 Subject: nls_utf-8 Message-ID: <200602020146.53004.glen@delfi.ee> i tried to mount vfat filesystem as utf-8 dd if=/dev/zero of=vfat bs=1M count=24 mkfs.vfat vfat mount -t vfat -o umask=002,uid=0,gid=28,iocharset=utf-8,codepage=850,exec,showexec,loop vfat /mnt/ and i get: Unable to load NLS charset utf-8 FAT: IO charset utf-8 not found why is the nls_utf-8 compiled statically? afaik no native fs (from what you intend to boot) needs nls_* modules, therefore i think it should be as modules as other nls_* modules kernel-i386.config:CONFIG_NLS_UTF8=y other question is why vfat failed to initialize from static nls_utf-8 -- glen From gotar at polanet.pl Sat Feb 4 12:24:46 2006 From: gotar at polanet.pl (Tomasz Pala) Date: Sat, 4 Feb 2006 12:24:46 +0100 Subject: glen: Smarty.spec: - move Smarty out of PEAR dirs [...] In-Reply-To: <20060125230050.GA25426@fngna.oyu> References: <200601191817.11082.arekm@pld-linux.org> <200601200111.13811.glen@delfi.ee> <43D624AF.1080302@limanowa.net> <20060125224340.GA15342@pepin.polanet.pl> <20060125230050.GA25426@fngna.oyu> Message-ID: <20060204112446.GA1158@os> On Thu, Jan 26, 2006 at 00:00:50 +0100, Jakub Bogusz wrote: > > $ mozilla-firefox > > /usr/lib/mozilla-firefox/firefox-bin: symbol lookup error: /usr/lib/mozilla-firefox/components/libdocshell.so: undefined symbol: PR_GetPhysicalMemorySize > > Too old nspr? Yep. But dunno how to modify this R. -- GoTaR gotar> http://vfmg.sourceforge.net/ http://tccs.sourceforge.net/ From adamg at biomerieux.pl Sun Feb 5 13:22:26 2006 From: adamg at biomerieux.pl (Adam =?iso-8859-2?Q?Go=B3=EAbiowski?=) Date: Sun, 5 Feb 2006 13:22:26 +0100 Subject: AC TODO [19/01/2006] In-Reply-To: <200601191817.11082.arekm@pld-linux.org> References: <200601191817.11082.arekm@pld-linux.org> Message-ID: <20060205122226.GB12784@mysza.eu.org> On Thu, Jan 19, 2006 at 06:17:10PM +0100, Arkadiusz Miskiewicz wrote: > Probably at the end of month I'll start tagging AC-release so there is still a > few days for fixes. What's the current status of AC release plan? Is there anything more that needs to be done ? -- .. :: http://www.pomocdladominiki.com.pl/ -- mo?esz pom?c :: .. | Everybody needs someone sure, someone true, PLD Linux developer | Everybody needs some solid rock, I know I do. From arekm at pld-linux.org Sun Feb 5 14:08:01 2006 From: arekm at pld-linux.org (Arkadiusz Miskiewicz) Date: Sun, 5 Feb 2006 14:08:01 +0100 Subject: AC TODO [19/01/2006] In-Reply-To: <20060205122226.GB12784@mysza.eu.org> References: <200601191817.11082.arekm@pld-linux.org> <20060205122226.GB12784@mysza.eu.org> Message-ID: <200602051408.02121.arekm@pld-linux.org> On Sunday 05 February 2006 13:22, Adam Go??biowski wrote: > On Thu, Jan 19, 2006 at 06:17:10PM +0100, Arkadiusz Miskiewicz wrote: > > Probably at the end of month I'll start tagging AC-release so there is > > still a few days for fixes. > > What's the current status of AC release plan? Is there anything more > that needs to be done ? kernel rebuild, mv stuff from ready to main, ISOs, tagging. -- Arkadiusz Mi?kiewicz PLD/Linux Team http://www.t17.ds.pwr.wroc.pl/~misiek/ http://ftp.pld-linux.org/ From sparky at sparky.homelinux.org Thu Feb 9 19:00:32 2006 From: sparky at sparky.homelinux.org (Przemek Iskra) Date: Thu, 9 Feb 2006 19:00:32 +0100 Subject: SPECS: java-sun.spec - download URL for 1.5.0.06 In-Reply-To: References: Message-ID: <20060209180032.GA17429@sparky.homelinux.org> On Thu, Feb 09, 2006 at 06:16:24PM +0100, aredridel wrote: > Author: aredridel Date: Thu Feb 9 17:16:24 2006 GMT > Module: SPECS Tag: HEAD > ---- Log message: > - download URL for 1.5.0.06 > +# Source0-md5: 3cdad4a383b93680f02f6f06198c2227 > +# Source1-md5: 27adf9c276e1ec824a3946ef9fe022a4 > -NoSource: 0 > -NoSource: 1 > +#NoSource: 0 > +#NoSource: 1 that was stupid, java was downloaded to distfiles and now anyone can download it from there, it's illegal so fix it quickly and beg someone(TM) to delete it form distfiles -- ____ Sparky{PI] -- Przemyslaw _ ___ _ _ ........... LANG...Pl..Ca..Es..En /____) ___ ___ _ _ || Iskra | | _ \| | | : WWW........ppcrcd.pld-linux.org \____\| -_)'___| ||^'||//\\// < | _/| | | : JID......sparkyjabberes.org (____/|| (_-_|_|| ||\\ || |_ |_| |_| _| : Mail....sparkypld-linux.org From adamg at biomerieux.pl Thu Feb 9 19:03:00 2006 From: adamg at biomerieux.pl (Adam =?iso-8859-2?Q?Go=B3=EAbiowski?=) Date: Thu, 9 Feb 2006 19:03:00 +0100 Subject: SPECS: java-sun.spec - download URL for 1.5.0.06 In-Reply-To: <20060209180032.GA17429@sparky.homelinux.org> References: <20060209180032.GA17429@sparky.homelinux.org> Message-ID: <20060209180300.GB6175@mysza.eu.org> On Thu, Feb 09, 2006 at 07:00:32PM +0100, Przemek Iskra wrote: > that was stupid, java was downloaded to distfiles and now anyone can > download it from there, it's illegal > > so fix it quickly and beg someone(TM) to delete it form distfiles I've just dropped it from distfiles. -- .. :: http://www.pomocdladominiki.com.pl/ -- mo?esz pom?c :: .. | Everybody needs someone sure, someone true, PLD Linux developer | Everybody needs some solid rock, I know I do. From gotar at polanet.pl Fri Feb 10 02:20:08 2006 From: gotar at polanet.pl (Tomasz Pala) Date: Fri, 10 Feb 2006 02:20:08 +0100 Subject: upgrade java-blackdown to java-sun Message-ID: <20060210012007.GA17024@os> # rpm -Uvh --repackage mozilla-firefox-plugin-java-sun-1.5.0.06-1.athlon.rpm java-sun-mozilla-plugin-1.5.0.06-1.athlon.rpm mozilla-plugin-java-sun-1.5.0.06-1.athlon.rpm java-sun-jre-X11-1.5.0.06-1.athlon.rpm java-sun-jre-1.5.0.06-1.athlon.rpm java-sun-tools-1.5.0.06-1.athlon.rpm error: Failed dependencies: java-blackdown-jre is needed by java-sun-jre-X11-1.5.0.06-1.athlon java-blackdown-jre is needed by java-sun-jre-1.5.0.06-1.athlon Looks weird. This happens when package is build with java-blackdown-jre installed. -- GoTaR gotar> http://vfmg.sourceforge.net/ http://tccs.sourceforge.net/ From gotar at polanet.pl Fri Feb 10 02:23:21 2006 From: gotar at polanet.pl (Tomasz Pala) Date: Fri, 10 Feb 2006 02:23:21 +0100 Subject: SPECS: java-sun.spec - download URL for 1.5.0.06 In-Reply-To: <20060209180300.GB6175@mysza.eu.org> References: <20060209180032.GA17429@sparky.homelinux.org> <20060209180300.GB6175@mysza.eu.org> Message-ID: <20060210012321.GA17091@os> On Thu, Feb 09, 2006 at 19:03:00 +0100, Adam Go??biowski wrote: > > that was stupid, java was downloaded to distfiles and now anyone can > > download it from there, it's illegal > > > > so fix it quickly and beg someone(TM) to delete it form distfiles > > I've just dropped it from distfiles. Oops, I did it again:/ (don't report me to RIAA please;>) I haven't seen that it's still commented out, sorry. -- GoTaR gotar> http://vfmg.sourceforge.net/ http://tccs.sourceforge.net/ From adamg at biomerieux.pl Fri Feb 10 02:31:35 2006 From: adamg at biomerieux.pl (Adam =?iso-8859-2?Q?Go=B3=EAbiowski?=) Date: Fri, 10 Feb 2006 02:31:35 +0100 Subject: SPECS: java-sun.spec - download URL for 1.5.0.06 In-Reply-To: <20060210012321.GA17091@os> References: <20060209180032.GA17429@sparky.homelinux.org> <20060209180300.GB6175@mysza.eu.org> <20060210012321.GA17091@os> Message-ID: <20060210013135.GC6175@mysza.eu.org> On Fri, Feb 10, 2006 at 02:23:21AM +0100, Tomasz Pala wrote: > On Thu, Feb 09, 2006 at 19:03:00 +0100, Adam Go??biowski wrote: > > > > that was stupid, java was downloaded to distfiles and now anyone can > > > download it from there, it's illegal > > > > > > so fix it quickly and beg someone(TM) to delete it form distfiles > > > > I've just dropped it from distfiles. > > Oops, I did it again:/ (don't report me to RIAA please;>) > > I haven't seen that it's still commented out, sorry. Ok, dropped from df. Let's hope noone saw us distributing it ;) -- .. :: http://www.pomocdladominiki.com.pl/ -- mo?esz pom?c :: .. | Everybody needs someone sure, someone true, PLD Linux developer | Everybody needs some solid rock, I know I do. From glen at delfi.ee Thu Feb 9 11:42:56 2006 From: glen at delfi.ee (Elan =?iso-8859-1?q?Ruusam=E4e?=) Date: Thu, 9 Feb 2006 12:42:56 +0200 Subject: makewhatis from man spits errors Message-ID: <200602091242.56959.glen@delfi.ee> (as bugs.pld-linux.org is unusable again, posting here) man-whatis-1.6c-2 running from cron: # sh -x /etc/cron.daily/makewhatis + LOCKFILE=/var/lock/makewhatis.lock + [ -f /var/lock/makewhatis.lock ] + touch /var/lock/makewhatis.lock + makewhatis -u -w awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + rm -f /var/lock/makewhatis.lock + exit 0 attached also makewhatis run -- glen -------------- next part -------------- Script started on Thu Feb 9 12:41:42 2006 _wintersunset-root:/tmp\12:41:45 root[pts/7]@wintersunset /tmp# sh -x /usr/sbin/makewhatis -u -w + basename /usr/sbin/makewhatis + program=makewhatis + dm= + [ -d /usr/share/man ] + [ x = x ] + dm=/usr/share/man + [ -d /usr/X11R6/man ] + [ x/usr/share/man = x ] + dm=/usr/share/man:/usr/X11R6/man + [ -d /usr/local/man ] + [ x/usr/share/man:/usr/X11R6/man = x ] + dm=/usr/share/man:/usr/X11R6/man:/usr/local/man + DEFMANPATH=/usr/share/man:/usr/X11R6/man:/usr/local/man + dc= + [ -d /usr/share/man/preformat ] + [ -d /usr/share/man ] + [ x = x ] + dc=/usr/share/man + DEFCATPATH=/usr/share/man + AWK=/bin/awk + rm -rf /var/tmp/tmpwhatis* + mktemp -d /var/tmp/tmpwhatisXXXXXX + TMPFILEDIR=/var/tmp/tmpwhatisrhNeCA + TMPFILE=/var/tmp/tmpwhatisrhNeCA/w + trap rm -rf /var/tmp/tmpwhatisrhNeCA 0 1 2 3 15 + findarg0=-type f -size +0 + topath=manpath + defmanpath=/usr/share/man:/usr/X11R6/man:/usr/local/man + defcatpath= + sections=1 2 3 4 5 6 7 8 9 n l + [ -n ] + findarg=-ctime 0 + update=1 + continue + [ -n ] + man --path + manpath=/usr/share/man:/usr/X11R6/man:/usr/local/share/man:/usr/local/man + catpath=/usr/share/man:/usr/X11R6/man:/usr/local/share/man:/usr/local/man + continue + echo /usr/share/man:/usr/X11R6/man:/usr/local/share/man:/usr/local/man + tr : + manpath=/usr/share/man /usr/X11R6/man /usr/local/share/man /usr/local/man + [ x/usr/share/man:/usr/X11R6/man:/usr/local/share/man:/usr/local/man = x ] + echo /usr/share/man:/usr/X11R6/man:/usr/local/share/man:/usr/local/man + tr : + catpath=/usr/share/man /usr/X11R6/man /usr/local/share/man /usr/local/man + : + > /var/cache/man/whatis + eval path=$manpath + path=/usr/share/man /usr/X11R6/man /usr/local/share/man /usr/local/man + [ x1 = x ] + [ ! -w /usr/share/man/. ] + [ x1 = x ] + [ ! -w /usr/X11R6/man/. ] + [ x1 = x ] + [ ! -w /usr/local/share/man/. ] + [ x1 = x ] + [ ! -w /usr/local/man/. ] + eval path=$catpath + path=/usr/share/man /usr/X11R6/man /usr/local/share/man /usr/local/man + [ x1 = x ] + [ ! -w /usr/share/man/. ] + [ x1 = x ] + [ ! -w /usr/X11R6/man/. ] + [ x1 = x ] + [ ! -w /usr/local/share/man/. ] + [ x1 = x ] + [ ! -w /usr/local/man/. ] + [ x != x ] + export pages + eval path=$manpath + path=/usr/share/man /usr/X11R6/man /usr/local/share/man /usr/local/man + [ x != x ] + [ -s /usr/share/man/whatis -a man = man -a x1 = x ] + pwd + here=/tmp + cd /usr/share/man + > /var/tmp/tmpwhatisrhNeCA/w + [ -d man1 ] + cd man1 + section=1 + curdir=/usr/share/man/man1 + export section verbose curdir + find /usr/share/man/man1/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=1 verbose= curdir=/usr/share/man/man1 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man2 ] + cd man2 + section=2 + curdir=/usr/share/man/man2 + export section verbose curdir + find /usr/share/man/man2/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=2 verbose= curdir=/usr/share/man/man2 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man3 ] + cd man3 + section=3 + curdir=/usr/share/man/man3 + export section verbose curdir + find /usr/share/man/man3/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=3 verbose= curdir=/usr/share/man/man3 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man4 ] + cd man4 + section=4 + curdir=/usr/share/man/man4 + export section verbose curdir + find /usr/share/man/man4/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=4 verbose= curdir=/usr/share/man/man4 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man5 ] + cd man5 + section=5 + curdir=/usr/share/man/man5 + export section verbose curdir + find /usr/share/man/man5/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=5 verbose= curdir=/usr/share/man/man5 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man6 ] + cd man6 + section=6 + curdir=/usr/share/man/man6 + export section verbose curdir + find /usr/share/man/man6/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=6 verbose= curdir=/usr/share/man/man6 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man7 ] + cd man7 + section=7 + curdir=/usr/share/man/man7 + export section verbose curdir + find /usr/share/man/man7/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=7 verbose= curdir=/usr/share/man/man7 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man8 ] + cd man8 + section=8 + curdir=/usr/share/man/man8 + export section verbose curdir + find /usr/share/man/man8/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=8 verbose= curdir=/usr/share/man/man8 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man9 ] + [ -d mann ] + cd mann + section=n + curdir=/usr/share/man/mann + export section verbose curdir + find /usr/share/man/mann/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=n verbose= curdir=/usr/share/man/mann awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d manl ] + cd manl + section=l + curdir=/usr/share/man/manl + export section verbose curdir + find /usr/share/man/manl/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=l verbose= curdir=/usr/share/man/manl awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + cd /tmp + mandir1=/usr/share/man + [ x != x ] + [ -s /usr/share/man/whatis ] + tr -s \n + < /var/tmp/tmpwhatisrhNeCA/w + sort -u + > /usr/share/man/whatis + chmod 644 /usr/share/man/whatis + rm /var/tmp/tmpwhatisrhNeCA/w + [ x != x ] + [ -s /usr/X11R6/man/whatis -a man = man -a x1 = x ] + pwd + here=/tmp + cd /usr/X11R6/man + > /var/tmp/tmpwhatisrhNeCA/w + [ -d man1 ] + cd man1 + section=1 + curdir=/usr/X11R6/man/man1 + export section verbose curdir + find /usr/X11R6/man/man1/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=1 verbose= curdir=/usr/X11R6/man/man1 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man2 ] + cd man2 + section=2 + curdir=/usr/X11R6/man/man2 + export section verbose curdir + find /usr/X11R6/man/man2/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=2 verbose= curdir=/usr/X11R6/man/man2 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man3 ] + cd man3 + section=3 + curdir=/usr/X11R6/man/man3 + export section verbose curdir + find /usr/X11R6/man/man3/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=3 verbose= curdir=/usr/X11R6/man/man3 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man4 ] + cd man4 + section=4 + curdir=/usr/X11R6/man/man4 + export section verbose curdir + find /usr/X11R6/man/man4/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=4 verbose= curdir=/usr/X11R6/man/man4 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man5 ] + cd man5 + section=5 + curdir=/usr/X11R6/man/man5 + export section verbose curdir + find /usr/X11R6/man/man5/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=5 verbose= curdir=/usr/X11R6/man/man5 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man6 ] + cd man6 + section=6 + curdir=/usr/X11R6/man/man6 + export section verbose curdir + find /usr/X11R6/man/man6/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=6 verbose= curdir=/usr/X11R6/man/man6 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man7 ] + cd man7 + section=7 + curdir=/usr/X11R6/man/man7 + export section verbose curdir + find /usr/X11R6/man/man7/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=7 verbose= curdir=/usr/X11R6/man/man7 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man8 ] + cd man8 + section=8 + curdir=/usr/X11R6/man/man8 + export section verbose curdir + find /usr/X11R6/man/man8/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=8 verbose= curdir=/usr/X11R6/man/man8 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man9 ] + [ -d mann ] + [ -d manl ] + cd /tmp + mandir1=/usr/X11R6/man + [ x != x ] + [ -s /usr/X11R6/man/whatis ] + tr -s \n + < /var/tmp/tmpwhatisrhNeCA/w + sort -u + > /usr/X11R6/man/whatis + chmod 644 /usr/X11R6/man/whatis + rm /var/tmp/tmpwhatisrhNeCA/w + [ x != x ] + [ -s /usr/local/share/man/whatis -a man = man -a x1 = x ] + pwd + here=/tmp + cd /usr/local/share/man + > /var/tmp/tmpwhatisrhNeCA/w + [ -d man1 ] + cd man1 + section=1 + curdir=/usr/local/share/man/man1 + export section verbose curdir + find /usr/local/share/man/man1/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=1 verbose= curdir=/usr/local/share/man/man1 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man2 ] + cd man2 + section=2 + curdir=/usr/local/share/man/man2 + export section verbose curdir + find /usr/local/share/man/man2/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=2 verbose= curdir=/usr/local/share/man/man2 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man3 ] + cd man3 + section=3 + curdir=/usr/local/share/man/man3 + export section verbose curdir + find /usr/local/share/man/man3/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=3 verbose= curdir=/usr/local/share/man/man3 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man4 ] + cd man4 + section=4 + curdir=/usr/local/share/man/man4 + export section verbose curdir + find /usr/local/share/man/man4/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=4 verbose= curdir=/usr/local/share/man/man4 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man5 ] + cd man5 + section=5 + curdir=/usr/local/share/man/man5 + export section verbose curdir + find /usr/local/share/man/man5/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=5 verbose= curdir=/usr/local/share/man/man5 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man6 ] + cd man6 + section=6 + curdir=/usr/local/share/man/man6 + export section verbose curdir + find /usr/local/share/man/man6/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=6 verbose= curdir=/usr/local/share/man/man6 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man7 ] + cd man7 + section=7 + curdir=/usr/local/share/man/man7 + export section verbose curdir + find /usr/local/share/man/man7/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=7 verbose= curdir=/usr/local/share/man/man7 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man8 ] + cd man8 + section=8 + curdir=/usr/local/share/man/man8 + export section verbose curdir + find /usr/local/share/man/man8/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=8 verbose= curdir=/usr/local/share/man/man8 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man9 ] + [ -d mann ] + [ -d manl ] + cd /tmp + mandir1=/usr/local/share/man + [ x != x ] + [ -s /usr/local/share/man/whatis ] + tr -s \n + < /var/tmp/tmpwhatisrhNeCA/w + sort -u + > /usr/local/share/man/whatis + chmod 644 /usr/local/share/man/whatis + rm /var/tmp/tmpwhatisrhNeCA/w + [ x != x ] + [ -s /usr/local/man/whatis -a man = man -a x1 = x ] + pwd + here=/tmp + cd /usr/local/man + > /var/tmp/tmpwhatisrhNeCA/w + [ -d man1 ] + cd man1 + section=1 + curdir=/usr/local/man/man1 + export section verbose curdir + find /usr/local/man/man1/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=1 verbose= curdir=/usr/local/man/man1 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man2 ] + cd man2 + section=2 + curdir=/usr/local/man/man2 + export section verbose curdir + find /usr/local/man/man2/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=2 verbose= curdir=/usr/local/man/man2 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man3 ] + cd man3 + section=3 + curdir=/usr/local/man/man3 + export section verbose curdir + find /usr/local/man/man3/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=3 verbose= curdir=/usr/local/man/man3 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man4 ] + cd man4 + section=4 + curdir=/usr/local/man/man4 + export section verbose curdir + find /usr/local/man/man4/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=4 verbose= curdir=/usr/local/man/man4 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man5 ] + cd man5 + section=5 + curdir=/usr/local/man/man5 + export section verbose curdir + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=5 verbose= curdir=/usr/local/man/man5 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + find /usr/local/man/man5/. -name * -type f -size +0 -ctime 0 -print + cd .. + [ -d man6 ] + cd man6 + section=6 + curdir=/usr/local/man/man6 + export section verbose curdir + find /usr/local/man/man6/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=6 verbose= curdir=/usr/local/man/man6 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man7 ] + cd man7 + section=7 + curdir=/usr/local/man/man7 + export section verbose curdir + find /usr/local/man/man7/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=7 verbose= curdir=/usr/local/man/man7 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man8 ] + cd man8 + section=8 + curdir=/usr/local/man/man8 + export section verbose curdir + find /usr/local/man/man8/. -name * -type f -size +0 -ctime 0 -print + /bin/awk function readline() { if (use_zcat || use_bzcat) { result = (pipe_cmd | getline); if (result < 0) { print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr"; } } else { result = (getline < filename); if (result < 0) { print "Read file error: " filename " " ERRNO > "/dev/stderr"; } } return result; } function closeline() { if (use_zcat || use_bzcat) { return close(pipe_cmd); } else { return close(filename); } } function do_one() { insh = 0; thisjoin = 1; done = 0; entire_line = ""; if (verbose) { print "adding " filename > "/dev/stderr" } use_zcat = match(filename,"\\.Z$") || match(filename,"\\.z$") || match(filename,"\\.gz$"); if (!use_zcat) use_bzcat = match(filename,"\\.bz2"); if (use_zcat || use_bzcat) { filename_no_gz = substr(filename, 0, RSTART - 1); } else { filename_no_gz = filename; } match(filename_no_gz, "/[^/]+$"); progname = substr(filename, RSTART + 1, RLENGTH - 1); if (match(progname, "\\." section "[A-Za-z]+")) { actual_section = substr(progname, RSTART + 1, RLENGTH - 1); } else { actual_section = section; } sub(/\..*/, "", progname); if (use_zcat || use_bzcat) { if (use_zcat) { pipe_cmd = "zcat \"" filename "\""; } else { pipe_cmd = "bzcat \"" filename "\""; } # try to avoid suspicious stuff if (filename ~ /[;&|`$(]/) { print "ignored strange file name " filename " in " curdir > "/dev/stderr"; return; } } while (!done && readline() > 0) { gsub(/.\b/, ""); if (($1 ~ /^\.[Ss][Hh]/ && ($2 ~ /[Nn][Aa][Mm][Ee]/ || $2 ~ /^JM?NO/ || $2 ~ /^NAVN/ || $2 ~ /^NUME/ || $2 ~ /^BEZEICHNUNG/ || $2 ~ /^NOMBRE/ || $2 ~ /^NIMI/ || $2 ~ /^NOM/ || $2 ~ /^IME/ || $2 ~ /^N[?E]V/ || $2 ~ /^NAMA/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^????/ || $2 ~ /^NAZWA/ || $2 ~ /^????????/ || $2 ~ /^????/ || $2 ~ /^?W??/ || $2 ~ /^NOME/ || $2 ~ /^NAAM/) || $2 ~ /^???/)) || (pages == "cat" && $1 ~ /^NAME/)) { if (!insh) { insh = 1; } else { done = 1; } } else if (insh) { if ($1 ~ /^\.[Ss][HhYS]/ || (pages == "cat" && ($1 ~ /^S[yYeE]/ || $1 ~ /^DESCRIPTION/ || $1 ~ /^COMMAND/ || $1 ~ /^OVERVIEW/ || $1 ~ /^STRUCTURES/ || $1 ~ /^INTRODUCTION/ || $0 ~ /^[^ ]/))) { # end insh for Synopsis, Syntax, but also for # DESCRIPTION (e.g., XFree86.1x), # COMMAND (e.g., xspread.1) # OVERVIEW (e.g., TclCommandWriting.3) # STRUCTURES (e.g., XEvent.3x) # INTRODUCTION (e.g., TclX.n) # and anything at all that begins in Column 1, so # is probably a section header. done = 1; } else { if ($0 ~ progname"-") { # Fix old cat pages sub(progname"-", progname" - "); } if ($0 ~ /[^ \\]-$/) { sub(/-$/, ""); # Handle Hyphenations nextjoin = 1; } else if ($0 ~ /\\c$/) { sub(/\\c$/, ""); # Handle Continuations nextjoin = 1; } else nextjoin = 0; sub(/^.[IB] /, ""); # Kill bold and italics sub(/^.BI /, ""); # sub(/^.SM /, ""); # Kill small sub(/^.Nm /, ""); # Kill bold sub(/^.Tn /, ""); # Kill normal sub(/^.Li /, ""); # Kill .Li sub(/^.Dq /, ""); # Kill .Dq sub(/^.Nd */, "- "); # Convert .Nd to dash sub(/\\\".*/, ""); # Trim pending comments sub(/ *$/, ""); # Trim pending spaces sub(/^\.$/, ""); # Kill blank comments sub(/^'.*/, ""); # Kill comment/troff lines sub(/^.in .*/, ""); # Kill various macros sub(/^.ti .*/, ""); sub(/^.ta .*/, ""); sub(/^.Vb .*/, ""); sub(/^.[PLTH]P$/, ""); # .PP/.LP/.TP/.HP sub(/^.Pp$/, ""); sub(/^.[iI]X .*$/, ""); sub(/^.nolinks$/, ""); sub(/^.B$/, ""); sub(/^.nf$/, ""); if (($1 ~ /^\.../ || $1 == "") && (entire_line ~ / - / || entire_line ~ / \\- /)) { # Assume that this ends the description of one line # Sometimes there are several descriptions in one page, # as in outb(2). handle_entire_line(); entire_line = ""; thisjoin = 1; } else { if (thisjoin) { entire_line = entire_line $0; } else { entire_line = entire_line " " $0; } thisjoin = nextjoin; } } } } handle_entire_line(); closeline(); } function handle_entire_line() { x = entire_line; # Keep it short gsub(/\015/, "", x); # Kill DOS remains gsub(/ /, " ", x); # Translate tabs to spaces gsub(/ +/, " ", x); # Collapse spaces gsub(/ *, */, ", ", x); # Fix comma spacings sub(/^ /, "", x); # Kill initial spaces sub(/ $/, "", x); # Kill trailing spaces sub(/__+/, "_", x); # Collapse underscores gsub(/\\f\(../, "", x); # Kill font changes gsub(/\\f[PRIB0123]/, "", x); # Kill font changes gsub(/\\s[-+0-9]*/, "", x); # Kill size changes gsub(/\\&/, "", x); # Kill \& gsub(/\\\|/, "", x); # Kill \| gsub(/\\\((ru|ul)/, "_", x); # Translate gsub(/\\\((mi|hy|em)/, "-", x); # Translate gsub(/\\\*\(../, "", x); # Kill troff strings gsub(/\\/, "", x); # Kill all backslashes gsub(/"/, "", x); # Kill quotes (from .Nd "foo bar") sub(/

/, "", x);# Yuk! HTML cruft gsub(/\000.*/, "X", x); # Binary cruft in LAPACK pages gsub(/ +/, " ", x); # Collapse spaces (again) sub(/^ /, "", x); # Kill initial spaces (again) sub(/ $/, "", x); # Kill trailing spaces (again) sub(/\.$/, "", x); # Kill trailing period if (!match(x, / - /)) return; after_dash = substr(x, RSTART); head = substr(x, 1, RSTART-1) ", "; while (match(head, /, /)) { prog = substr(head, 1, RSTART-1); head = substr(head, RSTART+2); if (prog != progname) prog = prog " [" progname "]"; printf "%-*s (%s) %s\n", 20, prog, actual_section, after_dash; } } { # Main action - process each filename read in. filename = $0; do_one(); } pages=man section=8 verbose= curdir=/usr/local/man/man8 awk: line 74: syntax error at or near || awk: line 75: extra ')' awk: line 78: syntax error at or near else awk: line 81: syntax error at or near } awk: line 151: syntax error at or near } + cd .. + [ -d man9 ] + [ -d mann ] + [ -d manl ] + cd /tmp + mandir1=/usr/local/man + [ x != x ] + [ -s /usr/local/man/whatis ] + tr -s \n + < /var/tmp/tmpwhatisrhNeCA/w + sort -u + > /usr/local/man/whatis + chmod 644 /usr/local/man/whatis + rm /var/tmp/tmpwhatisrhNeCA/w + export pages + eval path=$catpath + path=/usr/share/man /usr/X11R6/man /usr/local/share/man /usr/local/man + [ x != x ] + [ -s /usr/share/man/whatis -a cat = man -a x1 = x ] + pwd + here=/tmp + cd /usr/share/man + > /var/tmp/tmpwhatisrhNeCA/w + [ -d cat1 ] + [ -d cat2 ] + [ -d cat3 ] + [ -d cat4 ] + [ -d cat5 ] + [ -d cat6 ] + [ -d cat7 ] + [ -d cat8 ] + [ -d cat9 ] + [ -d catn ] + [ -d catl ] + cd /tmp + mandir1=/usr/share/man + [ x != x ] + [ -s /usr/share/man/whatis ] + tr -s \n + < /var/tmp/tmpwhatisrhNeCA/w + sort -u + > /usr/share/man/whatis + chmod 644 /usr/share/man/whatis + rm /var/tmp/tmpwhatisrhNeCA/w + [ x != x ] + [ -s /usr/X11R6/man/whatis -a cat = man -a x1 = x ] + pwd + here=/tmp + cd /usr/X11R6/man + > /var/tmp/tmpwhatisrhNeCA/w + [ -d cat1 ] + [ -d cat2 ] + [ -d cat3 ] + [ -d cat4 ] + [ -d cat5 ] + [ -d cat6 ] + [ -d cat7 ] + [ -d cat8 ] + [ -d cat9 ] + [ -d catn ] + [ -d catl ] + cd /tmp + mandir1=/usr/X11R6/man + [ x != x ] + [ -s /usr/X11R6/man/whatis ] + tr -s \n + < /var/tmp/tmpwhatisrhNeCA/w + sort -u + > /usr/X11R6/man/whatis + chmod 644 /usr/X11R6/man/whatis + rm /var/tmp/tmpwhatisrhNeCA/w + [ x != x ] + [ -s /usr/local/share/man/whatis -a cat = man -a x1 = x ] + pwd + here=/tmp + cd /usr/local/share/man + > /var/tmp/tmpwhatisrhNeCA/w + [ -d cat1 ] + [ -d cat2 ] + [ -d cat3 ] + [ -d cat4 ] + [ -d cat5 ] + [ -d cat6 ] + [ -d cat7 ] + [ -d cat8 ] + [ -d cat9 ] + [ -d catn ] + [ -d catl ] + cd /tmp + mandir1=/usr/local/share/man + [ x != x ] + [ -s /usr/local/share/man/whatis ] + tr -s \n + < /var/tmp/tmpwhatisrhNeCA/w + sort -u + > /usr/local/share/man/whatis + chmod 644 /usr/local/share/man/whatis + rm /var/tmp/tmpwhatisrhNeCA/w + [ x != x ] + [ -s /usr/local/man/whatis -a cat = man -a x1 = x ] + pwd + here=/tmp + cd /usr/local/man + > /var/tmp/tmpwhatisrhNeCA/w + [ -d cat1 ] + [ -d cat2 ] + [ -d cat3 ] + [ -d cat4 ] + [ -d cat5 ] + [ -d cat6 ] + [ -d cat7 ] + [ -d cat8 ] + [ -d cat9 ] + [ -d catn ] + [ -d catl ] + cd /tmp + mandir1=/usr/local/man + [ x != x ] + [ -s /usr/local/man/whatis ] + tr -s \n + < /var/tmp/tmpwhatisrhNeCA/w + sort -u + > /usr/local/man/whatis + chmod 644 /usr/local/man/whatis + rm /var/tmp/tmpwhatisrhNeCA/w + rm -rf /var/tmp/tmpwhatisrhNeCA + rm -rf /var/tmp/tmpwhatisrhNeCA _wintersunset-root:/tmp\12:41:55 root[pts/7]@wintersunset /tmp#  Script done on Thu Feb 9 12:41:56 2006 From glen at delfi.ee Fri Feb 10 18:40:45 2006 From: glen at delfi.ee (Elan =?iso-8859-2?q?Ruusam=E4e?=) Date: Fri, 10 Feb 2006 19:40:45 +0200 Subject: SPECS: mysql.spec - release 3 - charsets definitions are needed by... In-Reply-To: References: Message-ID: <200602101940.45240.glen@delfi.ee> On Friday 10 February 2006 19:08, baggins wrote: > Author: baggins Date: Fri Feb 10 17:08:17 2006 GMT > Module: SPECS Tag: HEAD > ---- Log message: > - release 3 > - charsets definitions are needed by both client and server > - moved charsets to separate package > - mysql and mysql-client R mysql-charsets > > ---- Files affected: > SPECS: > mysql.spec (1.321 -> 1.322) [...] > +%files charsets > +%defattr(644,root,root,755) > +%{_datadir}/mysql/charsets # rpm -qf /usr/share/mysql/ mysql-5.0.19-0.20060111.1 maybe do package -common instead? -- glen From qboosh at pld-linux.org Fri Feb 10 20:31:58 2006 From: qboosh at pld-linux.org (Jakub Bogusz) Date: Fri, 10 Feb 2006 20:31:58 +0100 Subject: STBR-AC Message-ID: <20060210193158.GB4594@fngna.oyu> libtasn1.spec gnutls.spec:AC-branch (security fixes) -- Jakub Bogusz http://qboosh.cs.net.pl/ From baggins at sith.mimuw.edu.pl Fri Feb 10 20:32:38 2006 From: baggins at sith.mimuw.edu.pl (Jan Rekorajski) Date: Fri, 10 Feb 2006 20:32:38 +0100 Subject: STBR-AC In-Reply-To: <20060210193158.GB4594@fngna.oyu> References: <20060210193158.GB4594@fngna.oyu> Message-ID: <20060210193238.GX946@sith.mimuw.edu.pl> On Fri, 10 Feb 2006, Jakub Bogusz wrote: > libtasn1.spec gnutls.spec:AC-branch > (security fixes) poszlo Janek -- Jan R?korajski | ALL SUSPECTS ARE GUILTY. PERIOD! bagginsmimuw.edu.pl | OTHERWISE THEY WOULDN'T BE SUSPECTS, WOULD THEY? BOFH, MANIAC | -- TROOPS by Kevin Rubio From glen at delfi.ee Mon Feb 13 09:48:02 2006 From: glen at delfi.ee (Elan =?iso-8859-1?q?Ruusam=E4e?=) Date: Mon, 13 Feb 2006 10:48:02 +0200 Subject: any policy for cross arch packages (-lib packages) Message-ID: <200602131048.03170.glen@delfi.ee> hi if you want to install two arch packages (amd64 & athlon) then there's cases when you install package which contains %{_libdir} files and %config files. as a result of install such package (upgrading both arches) the %config files are created .rpmnew: 5:pango ########################################### [ 21%] 6:gtk+2 ########################################### [ 25%] 7:pango warning: /etc/pango/pangox.aliases created as /etc/pango/pangox.aliases.rpmnew ########################################### [ 29%] 12:heimdal-libs ########################################### [ 50%] 13:heimdal-libs warning: /etc/heimdal/krb5.conf created as /etc/heimdal/krb5.conf.rpmnew ########################################### [ 54%] # q -qf /etc/pango/pangox.aliases pango-1.10.3-1.athlon pango-1.10.3-1.amd64 # q -qf /etc/heimdal/krb5.conf heimdal-libs-0.7.2-1.athlon heimdal-libs-0.7.2-1.amd64 prposition: 1. make rule that -libs file may not contain anything else outside %{_libdir} (that should include %doc too) 2. make rule that packages whose libraries are used outside the same package will have -libs subpackage. -- glen From pluto at agmk.net Mon Feb 13 14:58:02 2006 From: pluto at agmk.net (Pawel Sikora) Date: Mon, 13 Feb 2006 14:58:02 +0100 (CET) Subject: any policy for cross arch packages (-lib packages) In-Reply-To: <200602131048.03170.glen@delfi.ee> References: <200602131048.03170.glen@delfi.ee> Message-ID: On Mon, 13 Feb 2006, Elan Ruusam?e wrote: > prposition: > 1. make rule that -libs file may not contain anything else outside %{_libdir} (that should include %doc too) > 2. make rule that packages whose libraries are used outside the same package will have -libs subpackage. 3. put %doc in *-doc.noarch :) -- to_be || !to_be == 1, to_be | ~to_be == -1 From glen at delfi.ee Mon Feb 13 16:55:32 2006 From: glen at delfi.ee (Elan =?iso-8859-1?q?Ruusam=E4e?=) Date: Mon, 13 Feb 2006 17:55:32 +0200 Subject: BROKEN UDEV on AC Message-ID: <200602131755.32457.glen@delfi.ee> grrrrrrr udev-079-2.amd64 cmon, is adding trigger really so hard? hints: 1. missing trigger for $UDEV_STARTER 2. missing default value (fallback) for UDEV_STARTER outcome: # sh /sbin/start_udev * Starting udev................................................... [ BUSY ]/sbin/start_udev[223]: /sbin/: cannot execute - Is a directory [ DONE ] and no devices found to mount any non-root partitions (suprise!) plus, no sshd startup due no /dev/urandom # grep -n ^ /sbin/start_udev |grep 223 223:/sbin/${UDEV_STARTER} # grep UDEV_STARTER /sbin/start_udev -c 0 # grep UDEV_STARTER /etc/udev/udev.conf* /etc/udev/udev.conf.rpmnew:UDEV_STARTER="udevstart" -- glen From glen at delfi.ee Mon Feb 13 15:46:59 2006 From: glen at delfi.ee (Elan =?iso-8859-13?q?Ruusam=E4e?=) Date: Mon, 13 Feb 2006 16:46:59 +0200 Subject: any policy for cross arch packages (-lib packages) In-Reply-To: References: <200602131048.03170.glen@delfi.ee> Message-ID: <200602131647.00338.glen@delfi.ee> On Monday 13 February 2006 15:58, Pawel Sikora wrote: > On Mon, 13 Feb 2006, Elan Ruusam?e wrote: > > prposition: > > 1. make rule that -libs file may not contain anything else outside > > %{_libdir} (that should include %doc too) 2. make rule that packages > > whose libraries are used outside the same package will have -libs > > subpackage. > > 3. put %doc in *-doc.noarch :) this wouldn't be possible with current rpm archidecture? altho it would be achieved if builders support it: 1. bcond doc, if enabled $arch.rpm is not produced (%files bconded) 2. build on $arch --without doc 3. build --target noarch --with doc ie run build process twice for same spec. -- glen From sparky at sparky.homelinux.org Mon Feb 13 20:37:11 2006 From: sparky at sparky.homelinux.org (Przemek Iskra) Date: Mon, 13 Feb 2006 20:37:11 +0100 Subject: any policy for cross arch packages (-lib packages) In-Reply-To: <200602131048.03170.glen@delfi.ee> References: <200602131048.03170.glen@delfi.ee> Message-ID: <20060213193711.GA29311@sparky.homelinux.org> On Mon, Feb 13, 2006 at 10:48:02AM +0200, Elan Ruusam?e wrote: > hi > > if you want to install two arch packages (amd64 & athlon) then there's cases when you > install package which contains %{_libdir} files and %config files. > as a result of install such package (upgrading both arches) the %config files are created .rpmnew: > # q -qf /etc/pango/pangox.aliases > pango-1.10.3-1.athlon > pango-1.10.3-1.amd64 pango is not the best exemple, libraries require proper /etc/pango/pango.modules file for it to work, this file differs on 32 and 64 bit archs, that's why i have added arch_confdir bcond -- ____ Sparky{PI] -- Przemyslaw _ ___ _ _ ........... LANG...Pl..Ca..Es..En /____) ___ ___ _ _ || Iskra | | _ \| | | : WWW........ppcrcd.pld-linux.org \____\| -_)'___| ||^'||//\\// < | _/| | | : JID......sparkyjabberes.org (____/|| (_-_|_|| ||\\ || |_ |_| |_| _| : Mail....sparkypld-linux.org From freetz at gmx.net Mon Feb 13 21:36:37 2006 From: freetz at gmx.net (Fryderyk Dziarmagowski) Date: Mon, 13 Feb 2006 21:36:37 +0100 Subject: BROKEN UDEV on AC In-Reply-To: <200602131755.32457.glen@delfi.ee> References: <200602131755.32457.glen@delfi.ee> Message-ID: <20060213213637.fc73e67e.freetz@gmx.net> --- "Elan Ruusam?e" wrote: > grrrrrrr > > udev-079-2.amd64 > > cmon, is adding trigger really so hard? [cut] take it easy. if you need a feature implement it. Don't expect from people to do something what they don't need. -- Fryderyk Dziarmagowski From ankry at green.mif.pg.gda.pl Mon Feb 13 22:13:17 2006 From: ankry at green.mif.pg.gda.pl (Andrzej Krzysztofowicz) Date: Mon, 13 Feb 2006 22:13:17 +0100 (CET) Subject: BROKEN UDEV on AC In-Reply-To: <20060213213637.fc73e67e.freetz@gmx.net> from "Fryderyk Dziarmagowski" at Feb 13, 2006 09:36:37 PM Message-ID: <200602132113.k1DLDHhM012011@green.mif.pg.gda.pl> Fryderyk Dziarmagowski wrote: > > --- "Elan Ruusam?e" wrote: > > > grrrrrrr > > > > udev-079-2.amd64 > > > > cmon, is adding trigger really so hard? > [cut] > > take it easy. if you need a feature implement it. Don't expect from > people to do something what they don't need. glen is right. Breakage in such a basic package is like sabotage. -- ======================================================================= Andrzej M. Krzysztofowicz ankry at mif.pg.gda.pl phone (48)(58) 347 14 61 Faculty of Applied Phys. & Math., Gdansk University of Technology From freetz at gmx.net Mon Feb 13 22:46:32 2006 From: freetz at gmx.net (Fryderyk Dziarmagowski) Date: Mon, 13 Feb 2006 22:46:32 +0100 Subject: BROKEN UDEV on AC In-Reply-To: <200602132113.k1DLDHhM012011@green.mif.pg.gda.pl> References: <20060213213637.fc73e67e.freetz@gmx.net> <200602132113.k1DLDHhM012011@green.mif.pg.gda.pl> Message-ID: <20060213224632.a35d3f3b.freetz@gmx.net> --- Andrzej Krzysztofowicz wrote: > > > grrrrrrr > > > > > > udev-079-2.amd64 > > > > > > cmon, is adding trigger really so hard? > > [cut] > > > > take it easy. if you need a feature implement it. Don't expect from > > people to do something what they don't need. > > glen is right. Breakage in such a basic package is like sabotage. so fix it, instead of writing bullshit here. -- Fryderyk Dziarmagowski From baggins at sith.mimuw.edu.pl Mon Feb 13 23:06:51 2006 From: baggins at sith.mimuw.edu.pl (Jan Rekorajski) Date: Mon, 13 Feb 2006 23:06:51 +0100 Subject: BROKEN UDEV on AC In-Reply-To: <20060213224632.a35d3f3b.freetz@gmx.net> References: <20060213213637.fc73e67e.freetz@gmx.net> <200602132113.k1DLDHhM012011@green.mif.pg.gda.pl> <20060213224632.a35d3f3b.freetz@gmx.net> Message-ID: <20060213220651.GA8100@sith.mimuw.edu.pl> On Mon, 13 Feb 2006, Fryderyk Dziarmagowski wrote: > --- Andrzej Krzysztofowicz wrote: > > > > > grrrrrrr > > > > > > > > udev-079-2.amd64 > > > > > > > > cmon, is adding trigger really so hard? > > > [cut] > > > > > > take it easy. if you need a feature implement it. Don't expect from > > > people to do something what they don't need. > > > > glen is right. Breakage in such a basic package is like sabotage. > > so fix it, instead of writing bullshit here. What I see from changelog is that you screwed it. So it is _you_ who should fix it. Janek -- Jan R?korajski | ALL SUSPECTS ARE GUILTY. PERIOD! bagginsmimuw.edu.pl | OTHERWISE THEY WOULDN'T BE SUSPECTS, WOULD THEY? BOFH, MANIAC | -- TROOPS by Kevin Rubio From freetz at gmx.net Tue Feb 14 00:10:01 2006 From: freetz at gmx.net (Fryderyk Dziarmagowski) Date: Tue, 14 Feb 2006 00:10:01 +0100 Subject: BROKEN UDEV on AC In-Reply-To: <20060213220651.GA8100@sith.mimuw.edu.pl> References: <20060213213637.fc73e67e.freetz@gmx.net> <200602132113.k1DLDHhM012011@green.mif.pg.gda.pl> <20060213224632.a35d3f3b.freetz@gmx.net> <20060213220651.GA8100@sith.mimuw.edu.pl> Message-ID: <20060214001001.9405b2fe.freetz@gmx.net> --- Jan Rekorajski wrote: > On Mon, 13 Feb 2006, Fryderyk Dziarmagowski wrote: > > > --- Andrzej Krzysztofowicz wrote: > > > > > > > grrrrrrr > > > > > > > > > > udev-079-2.amd64 > > > > > > > > > > cmon, is adding trigger really so hard? > > > > [cut] > > > > > > > > take it easy. if you need a feature implement it. Don't expect from > > > > people to do something what they don't need. > > > > > > glen is right. Breakage in such a basic package is like sabotage. > > > > so fix it, instead of writing bullshit here. > > What I see from changelog is that you screwed it. > So it is _you_ who should fix it. I don't see any breakage, sabotage, ... (write your favorite word here) in my commits. -- Fryderyk Dziarmagowski From glen at delfi.ee Tue Feb 14 00:19:35 2006 From: glen at delfi.ee (Elan =?iso-8859-1?q?Ruusam=E4e?=) Date: Tue, 14 Feb 2006 01:19:35 +0200 Subject: BROKEN UDEV on AC In-Reply-To: <20060214001001.9405b2fe.freetz@gmx.net> References: <20060213213637.fc73e67e.freetz@gmx.net> <20060213220651.GA8100@sith.mimuw.edu.pl> <20060214001001.9405b2fe.freetz@gmx.net> Message-ID: <200602140119.35632.glen@delfi.ee> On Tuesday 14 February 2006 01:10, Fryderyk Dziarmagowski wrote: > I don't see any breakage, sabotage, ... (write your favorite word here) > in my commits. look once more initial email. the script used $UDEVSTARTER which was not initalized and .rpmnew was not merged, thefore the /sbin/start_udev tried to execute /sbin/ directory. anyway, i fixed it inmy way now already, -- glen From macieh at poczta.fm Thu Feb 16 18:12:56 2006 From: macieh at poczta.fm (Maciej Hanak) Date: 16 Feb 2006 18:12:56 +0100 Subject: [SPEC] wpkg.spec upgreaded to stable 0.9.3 Message-ID: <20060216171256.05C0A33E86C@poczta.interia.pl> wpkg.spec upgraded to stable 0.9.3, building tested on i686 and athlon arch. -- macieh Best Regards -------------- next part -------------- A non-text attachment was scrubbed... Name: wpkg.spec Type: application/octet-stream Size: 4261 bytes Desc: not available URL: From qboosh at pld-linux.org Thu Feb 16 18:52:05 2006 From: qboosh at pld-linux.org (Jakub Bogusz) Date: Thu, 16 Feb 2006 18:52:05 +0100 Subject: [SPEC] wpkg.spec upgreaded to stable 0.9.3 In-Reply-To: <20060216171256.05C0A33E86C@poczta.interia.pl> References: <20060216171256.05C0A33E86C@poczta.interia.pl> Message-ID: <20060216175205.GA12839@fngna.oyu> On Thu, Feb 16, 2006 at 06:12:56PM +0100, Maciej Hanak wrote: > wpkg.spec upgraded to stable 0.9.3, building tested on i686 and athlon arch. When sending changes to existing spec, send diff, not whole file. -- Jakub Bogusz http://qboosh.cs.net.pl/ From gotar at polanet.pl Sat Feb 18 10:03:17 2006 From: gotar at polanet.pl (Tomasz Pala) Date: Sat, 18 Feb 2006 10:03:17 +0100 Subject: http://ftp3... ERROR 403: Forbidden Message-ID: <20060218090317.GA362@os> Someone please take a look at this. This site resolves from ftp... via tpsa. -- GoTaR gotar> http://vfmg.sourceforge.net/ http://tccs.sourceforge.net/ From qboosh at pld-linux.org Sun Feb 19 15:06:37 2006 From: qboosh at pld-linux.org (Jakub Bogusz) Date: Sun, 19 Feb 2006 15:06:37 +0100 Subject: cvs mv Message-ID: <20060219140636.GA1177@fngna.oyu> mv SPECS/kernel-net-rt2x00.spec,v SPECS/rt2x00.spec,v -- Jakub Bogusz http://qboosh.cs.net.pl/ From michal.moskal at gmail.com Sun Feb 19 15:27:42 2006 From: michal.moskal at gmail.com (Michal Moskal) Date: Sun, 19 Feb 2006 15:27:42 +0100 Subject: cvs mv In-Reply-To: <20060219140636.GA1177@fngna.oyu> References: <20060219140636.GA1177@fngna.oyu> Message-ID: On 2/19/06, Jakub Bogusz wrote: > mv SPECS/kernel-net-rt2x00.spec,v SPECS/rt2x00.spec,v Done. -- Michal Moskal, http://nemerle.org/~malekith/ From qboosh at pld-linux.org Mon Feb 20 11:28:16 2006 From: qboosh at pld-linux.org (Jakub Bogusz) Date: Mon, 20 Feb 2006 11:28:16 +0100 Subject: packaging uncompressed vmlinuz on ppc* Message-ID: <20060220102816.GA22730@gruby.cs.net.pl> What is the sense of packaging uncompressed vmlinuz (just a copy of vmlinux) on ppc*? It only takes few megs of /boot space. -- Jakub Bogusz http://qboosh.cs.net.pl/ From qboosh at pld-linux.org Mon Feb 20 11:46:16 2006 From: qboosh at pld-linux.org (Jakub Bogusz) Date: Mon, 20 Feb 2006 11:46:16 +0100 Subject: certs directory Message-ID: <20060220104616.GB22730@gruby.cs.net.pl> poldek:/all-avail> search -f /var/lib/openssl/certs Przeszukiwanie pakiet?w..........................................zrobione. 2 package(s) found: imap-common-2004g-2 openssl-0.9.7i-1 imap and imap-pop3 packages already require openssl, so there is no need for imap-common to own this directory. Also, some time ago /etc/certs directory has been chosen for this purpose. $ rpm -qf /etc/certs FHS-2.3-13 -- Jakub Bogusz http://qboosh.cs.net.pl/ From hawk at limanowa.net Mon Feb 20 12:38:47 2006 From: hawk at limanowa.net (=?ISO-8859-1?Q?Marcin_Kr=F3l?=) Date: Mon, 20 Feb 2006 12:38:47 +0100 Subject: certs directory In-Reply-To: <20060220104616.GB22730@gruby.cs.net.pl> References: <20060220104616.GB22730@gruby.cs.net.pl> Message-ID: <43F9AA47.4060608@limanowa.net> > imap and imap-pop3 packages already require openssl, so there is no need > for imap-common to own this directory. I'll fix it and move certs. > Also, some time ago /etc/certs directory has been chosen for this > purpose. > $ rpm -qf /etc/certs > FHS-2.3-13 I assume all certs should go there then? Those from apache for example. And should they be stored directly in this direcotry or in some subdirectories? M. From qboosh at pld-linux.org Mon Feb 20 12:55:43 2006 From: qboosh at pld-linux.org (Jakub Bogusz) Date: Mon, 20 Feb 2006 12:55:43 +0100 Subject: broken openssh in Ac (xauth path) Message-ID: <20060220115543.GC22730@gruby.cs.net.pl> Recent openssh in Ac has been built from HEAD, with post-Ac xauth path - so X forwarding is broken now. -- Jakub Bogusz http://qboosh.cs.net.pl/ From arekm at pld-linux.org Mon Feb 20 13:00:29 2006 From: arekm at pld-linux.org (Arkadiusz Miskiewicz) Date: Mon, 20 Feb 2006 13:00:29 +0100 Subject: broken openssh in Ac (xauth path) In-Reply-To: <20060220115543.GC22730@gruby.cs.net.pl> References: <20060220115543.GC22730@gruby.cs.net.pl> Message-ID: <200602201300.29587.arekm@pld-linux.org> On Monday 20 February 2006 12:55, Jakub Bogusz wrote: > Recent openssh in Ac has been built from HEAD, with post-Ac xauth path > - so X forwarding is broken now. Someone didn't create AC-branch then. -- Arkadiusz Mi?kiewicz PLD/Linux Team http://www.t17.ds.pwr.wroc.pl/~misiek/ http://ftp.pld-linux.org/ From qboosh at pld-linux.org Mon Feb 20 13:03:06 2006 From: qboosh at pld-linux.org (Jakub Bogusz) Date: Mon, 20 Feb 2006 13:03:06 +0100 Subject: SPECS: glibc.spec - Ac migration workaround (no /lib/tls presence ... In-Reply-To: References: Message-ID: <20060220120306.GD22730@gruby.cs.net.pl> On Mon, Feb 20, 2006 at 11:31:04AM +0100, glen wrote: > Author: glen Date: Mon Feb 20 10:31:04 2006 GMT > Module: SPECS Tag: HEAD > ---- Log message: > - Ac migration workaround (no /lib/tls presence anymore) > > ---- Files affected: > SPECS: > glibc.spec (1.628 -> 1.629) Not this branch. -- Jakub Bogusz http://qboosh.cs.net.pl/ From wrobell at pld-linux.org Mon Feb 20 13:11:48 2006 From: wrobell at pld-linux.org (wrobell) Date: Mon, 20 Feb 2006 12:11:48 +0000 Subject: broken openssh in Ac (xauth path) In-Reply-To: <200602201300.29587.arekm@pld-linux.org> References: <20060220115543.GC22730@gruby.cs.net.pl> <200602201300.29587.arekm@pld-linux.org> Message-ID: <1140437508.768.7.camel@RECENT-CONVERT> On Mon, 2006-02-20 at 13:00 +0100, Arkadiusz Miskiewicz wrote: > On Monday 20 February 2006 12:55, Jakub Bogusz wrote: > > Recent openssh in Ac has been built from HEAD, with post-Ac xauth path > > - so X forwarding is broken now. > > Someone didn't create AC-branch then. who is allowed to do it and when? imho, it should be done at once some time ago. best regards, wrobell From glen at delfi.ee Mon Feb 20 13:16:37 2006 From: glen at delfi.ee (Elan =?iso-8859-1?q?Ruusam=E4e?=) Date: Mon, 20 Feb 2006 14:16:37 +0200 Subject: SPECS: glibc.spec - Ac migration workaround (no /lib/tls presence ... In-Reply-To: <20060220120306.GD22730@gruby.cs.net.pl> References: <20060220120306.GD22730@gruby.cs.net.pl> Message-ID: <200602201416.37871.glen@delfi.ee> On Monday 20 February 2006 14:03, Jakub Bogusz wrote: > On Mon, Feb 20, 2006 at 11:31:04AM +0100, glen wrote: > > Author: glen Date: Mon Feb 20 10:31:04 2006 GMT > > Module: SPECS Tag: HEAD > > ---- Log message: > > - Ac migration workaround (no /lib/tls presence anymore) > > > > ---- Files affected: > > SPECS: > > glibc.spec (1.628 -> 1.629) > > Not this branch. yes. that branch it's for Th for migrating from Ac -- glen From arekm at pld-linux.org Mon Feb 20 13:23:41 2006 From: arekm at pld-linux.org (Arkadiusz Miskiewicz) Date: Mon, 20 Feb 2006 13:23:41 +0100 Subject: broken openssh in Ac (xauth path) In-Reply-To: <1140437508.768.7.camel@RECENT-CONVERT> References: <20060220115543.GC22730@gruby.cs.net.pl> <200602201300.29587.arekm@pld-linux.org> <1140437508.768.7.camel@RECENT-CONVERT> Message-ID: <200602201323.41600.arekm@pld-linux.org> On Monday 20 February 2006 13:11, wrobell wrote: > On Mon, 2006-02-20 at 13:00 +0100, Arkadiusz Miskiewicz wrote: > > On Monday 20 February 2006 12:55, Jakub Bogusz wrote: > > > Recent openssh in Ac has been built from HEAD, with post-Ac xauth path > > > - so X forwarding is broken now. > > > > Someone didn't create AC-branch then. > > who is allowed to do it and when? Check acls in cvs, I didn't look. When someone commits non-ac thing on head while ac-branch doesn't exist. > imho, it should be done at once > some time ago. No one did that in the past. (It's on my future todo list anyway). > wrobell -- Arkadiusz Mi?kiewicz PLD/Linux Team http://www.t17.ds.pwr.wroc.pl/~misiek/ http://ftp.pld-linux.org/ From qboosh at pld-linux.org Mon Feb 20 18:51:22 2006 From: qboosh at pld-linux.org (Jakub Bogusz) Date: Mon, 20 Feb 2006 18:51:22 +0100 Subject: SPECS: glibc.spec - Ac migration workaround (no /lib/tls presence ... In-Reply-To: <200602201416.37871.glen@delfi.ee> References: <20060220120306.GD22730@gruby.cs.net.pl> <200602201416.37871.glen@delfi.ee> Message-ID: <20060220175122.GA1327@fngna.oyu> On Mon, Feb 20, 2006 at 02:16:37PM +0200, Elan Ruusam?e wrote: > On Monday 20 February 2006 14:03, Jakub Bogusz wrote: > > On Mon, Feb 20, 2006 at 11:31:04AM +0100, glen wrote: > > > Author: glen Date: Mon Feb 20 10:31:04 2006 GMT > > > Module: SPECS Tag: HEAD > > > ---- Log message: > > > - Ac migration workaround (no /lib/tls presence anymore) > > > > > > ---- Files affected: > > > SPECS: > > > glibc.spec (1.628 -> 1.629) > > > > Not this branch. > yes. that branch > it's for Th for migrating from Ac Th will have glibc 2.4 (currently on DEVEL, to be merged on HEAD after 2.4.0 release) - not that currently present on HEAD. glibc on HEAD _uses_ /lib/tls, so "/sbin/glibc-postinst /%{_lib}/tls" in %post would break just installed package. -- Jakub Bogusz http://qboosh.cs.net.pl/ From lists at urzenia.net Tue Feb 21 16:14:18 2006 From: lists at urzenia.net (Marcin Sztolcman) Date: Tue, 21 Feb 2006 16:14:18 +0100 Subject: certs directory In-Reply-To: <43F9AA47.4060608@limanowa.net> References: <20060220104616.GB22730@gruby.cs.net.pl> <43F9AA47.4060608@limanowa.net> Message-ID: <1140534858.4599.2.camel@localhost> Dnia 20-02-2006, pon o godzinie 12:38 +0100, Marcin Kr?l napisa?(a): > I assume all certs should go there then? Those from apache for example. > And should they be stored directly in this direcotry or in some > subdirectories? I'm not an developer, but imo they sould be in subdirectories, like: jabber, httpd etc. Jabberd2 can use one cert for c2s, another for s2s etc. MySZ -- Marcin ``MySZ`` Sztolcman http://diary.urzenia.net :: mailto:http://urzenia.net/email System zarz?dzania tre?ci? :: http://core-cms.com From jajcus at jajcus.net Tue Feb 21 21:51:13 2006 From: jajcus at jajcus.net (Jacek Konieczny) Date: Tue, 21 Feb 2006 21:51:13 +0100 Subject: certs directory In-Reply-To: <1140534858.4599.2.camel@localhost> References: <20060220104616.GB22730@gruby.cs.net.pl> <43F9AA47.4060608@limanowa.net> <1140534858.4599.2.camel@localhost> Message-ID: <20060221205113.GA9354@nic.nigdzie> On Tue, Feb 21, 2006 at 04:14:18PM +0100, Marcin Sztolcman wrote: > Dnia 20-02-2006, pon o godzinie 12:38 +0100, Marcin Kr?l napisa?(a): > > > I assume all certs should go there then? Those from apache for > example. > > And should they be stored directly in this direcotry or in some > > subdirectories? > > I'm not an developer, but imo they sould be in subdirectories, like: > jabber, httpd etc. Jabberd2 can use one cert for c2s, another for s2s > etc. Some people would like to use one certificate for all services on the host, other several certificates per service and many others different combination of that. Certificates provided by a distribution are quite useless, so I would suggest to leave certificate management to the system administrator. We could just provide a directory and suggest configuration pointing to that directory (even to not existing files). SSL is for security and if admin wants security he has to configure it by himself. Greets, Jacek From qboosh at pld-linux.org Tue Feb 21 23:29:49 2006 From: qboosh at pld-linux.org (Jakub Bogusz) Date: Tue, 21 Feb 2006 23:29:49 +0100 Subject: /usr/share/xml Message-ID: <20060221222949.GA2468@fngna.oyu> $ rpm -qf /usr/share/xml libglade2-2.5.1-1.athlon But beside glade-based apps this directory is used also by some packages which don't require libglade2. Also, FHS 2.3 specifies: #v+ ------------------------------------------------------------------------------- /usr/share/sgml : SGML data (optional) Purpose /usr/share/sgml contains architecture-independent files used by SGML applications, such as ordinary catalogs (not the centralized ones, see /etc/ sgml), DTDs, entities, or style sheets. ------------------------------------------------------------------------------- Specific Options The following directories, or symbolic links to directories, must be in /usr/ share/sgml, if the corresponding subsystem is installed: Directory Description docbook docbook DTD (optional) tei tei DTD (optional) html html DTD (optional) mathml mathml DTD (optional) Other files that are not specific to a given DTD may reside in their own subdirectory. ------------------------------------------------------------------------------- /usr/share/xml : XML data (optional) Purpose /usr/share/xml contains architecture-independent files used by XML applications, such as ordinary catalogs (not the centralized ones, see /etc/ sgml), DTDs, entities, or style sheets. ------------------------------------------------------------------------------- Specific Options The following directories, or symbolic links to directories, must be in /usr/ share/xml, if the corresponding subsystem is installed: Directory Description docbook docbook XML DTD (optional) xhtml XHTML DTD (optional) mathml MathML DTD (optional) ------------------------------------------------------------------------------- #v- We have XML DTDs in /usr/share/sgml... IIRC I saw some comment somewhere, that XML data shouldn't be placed in /usr/share/sgml - but I don't remember the source now. Anyway - let's at least move /usr/share/xml directory to some more common package... FHS? -- Jakub Bogusz http://qboosh.cs.net.pl/ From wrobell at pld-linux.org Wed Feb 22 17:00:28 2006 From: wrobell at pld-linux.org (wrobell) Date: Wed, 22 Feb 2006 16:00:28 +0000 Subject: gs 8.50 (gpl) Message-ID: <1140624028.30495.20.camel@RECENT-CONVERT> when i run gs it sigsegvs. last lines of strace below. has anyone experienced such problems? it is on ppc read(4, "rrentsystemparams /GenericResour"..., 4096) = 4096 read(4, "h dup length dict copy\n dup /"..., 4096) = 4096 brk(0x101d3000) = 0x101d3000 read(4, "entdict /.cidfonttypes .undef\ncu"..., 4096) = 1559 read(4, "", 4096) = 0 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ wrobell From glen at delfi.ee Wed Feb 22 23:09:38 2006 From: glen at delfi.ee (Elan =?iso-8859-2?q?Ruusam=E4e?=) Date: Thu, 23 Feb 2006 00:09:38 +0200 Subject: SOURCES: mediawiki-confdir2.patch - changed the path to LocalSetti... In-Reply-To: <200602222254.26701@tintia.doriath> References: <200602222346.22804.glen@delfi.ee> <200602222254.26701@tintia.doriath> Message-ID: <200602230009.39017.glen@delfi.ee> On Wednesday 22 February 2006 23:54, Michal Chruszcz wrote: > It seems like Elan Ruusam?e typed: > > umm > > > > afaik the /etc/webapps/mediawiki/LocalSettings.php is always created by > > rpm. so this patch makes the setup unusable. > > Does it really? I was upgrading earlier and such file wasn't created. ok. i must have confused with some other package, (hell there are *a lot* of webapps packages, and none of they have been written "good") # rpm -qf /etc/webapps/mediawiki/LocalSettings.php file /etc/webapps/mediawiki/LocalSettings.php is not owned by any package # q mediawiki{,-setup} mediawiki-1.5.6-1.i686 mediawiki-setup-1.5.6-1.i686 > # rpm -q rpm > rpm-4.4.2-28 *rpm* version doesn't matter ;) > > the logic was that you configure the setup, and then manually copy the > > LocalSettngs it creates to webapps dir. > > > > indeed the code could be improved to check for filesize=0 instead (what > > rpm packages) > > Well, this behaviour is logical, but only if such file is created. In my > case this didn't happen. That's why I submitted the change. However, if it > happened only at my machine, I could add the checking of filesize. maybe such scenario: 1. /etc/webpapps/mediawiki is 751,root,http 2. /etc/webapps/mediawiki/LocalSettings.php is 0 byte %confg(noreplace) %attr (640,root,http) 3. if setup is installed it's chmod 660, if removed chmod back to 640 in %scripts 4. setup checks the filesize>0 5. setup writes directly to /etc/webpapps/mediawiki/LocalSettings.php 6. chmod magic on /etc/webapps/mediawiki/ %dir in setup package is removed -- glen From qboosh at pld-linux.org Thu Feb 23 00:23:11 2006 From: qboosh at pld-linux.org (Jakub Bogusz) Date: Thu, 23 Feb 2006 00:23:11 +0100 Subject: SOURCES (LINUX_2_6): kernel-alpha.config, kernel-alpha-smp.config, ... In-Reply-To: References: Message-ID: <20060222232311.GA20662@gruby.cs.net.pl> On Wed, Feb 22, 2006 at 10:10:00PM +0100, sparky wrote: > Author: sparky Date: Wed Feb 22 21:10:00 2006 GMT > Module: SOURCES Tag: LINUX_2_6 > ---- Log message: > - remove CONFIG_XFRM, CONFIG_XFRM_USER, it's netfilter.config part But it's related to IPsec, not netfilter. -- Jakub Bogusz http://qboosh.cs.net.pl/ From sparky at sparky.homelinux.org Thu Feb 23 00:46:00 2006 From: sparky at sparky.homelinux.org (Przemek Iskra) Date: Thu, 23 Feb 2006 00:46:00 +0100 Subject: SOURCES (LINUX_2_6): kernel-alpha.config, kernel-alpha-smp.config, ... In-Reply-To: <20060222232311.GA20662@gruby.cs.net.pl> References: <20060222232311.GA20662@gruby.cs.net.pl> Message-ID: <20060222234600.GA4627@sparky.homelinux.org> On Thu, Feb 23, 2006 at 12:23:11AM +0100, Jakub Bogusz wrote: > On Wed, Feb 22, 2006 at 10:10:00PM +0100, sparky wrote: > > Author: sparky Date: Wed Feb 22 21:10:00 2006 GMT > > Module: SOURCES Tag: LINUX_2_6 > > ---- Log message: > > - remove CONFIG_XFRM, CONFIG_XFRM_USER, it's netfilter.config part > > But it's related to IPsec, not netfilter. So it should stay in per-arch config and be removed from netfilter.config ? if yes, why it wasn't in sparc(64) config ? leaving it in both per-arch and netfilter config is not a good idea -- ____ Sparky{PI] -- Przemyslaw _ ___ _ _ ........... LANG...Pl..Ca..Es..En /____) ___ ___ _ _ || Iskra | | _ \| | | : WWW........ppcrcd.pld-linux.org \____\| -_)'___| ||^'||//\\// < | _/| | | : JID......sparkyjabberes.org (____/|| (_-_|_|| ||\\ || |_ |_| |_| _| : Mail....sparkypld-linux.org From qboosh at pld-linux.org Thu Feb 23 06:47:06 2006 From: qboosh at pld-linux.org (Jakub Bogusz) Date: Thu, 23 Feb 2006 06:47:06 +0100 Subject: SOURCES (LINUX_2_6): kernel-alpha.config, kernel-alpha-smp.config, ... In-Reply-To: <20060222234600.GA4627@sparky.homelinux.org> References: <20060222232311.GA20662@gruby.cs.net.pl> <20060222234600.GA4627@sparky.homelinux.org> Message-ID: <20060223054706.GA29754@fngna.oyu> On Thu, Feb 23, 2006 at 12:46:00AM +0100, Przemek Iskra wrote: > On Thu, Feb 23, 2006 at 12:23:11AM +0100, Jakub Bogusz wrote: > > On Wed, Feb 22, 2006 at 10:10:00PM +0100, sparky wrote: > > > Author: sparky Date: Wed Feb 22 21:10:00 2006 GMT > > > Module: SOURCES Tag: LINUX_2_6 > > > ---- Log message: > > > - remove CONFIG_XFRM, CONFIG_XFRM_USER, it's netfilter.config part > > > > But it's related to IPsec, not netfilter. > > So it should stay in per-arch config and be removed from > netfilter.config ? Yes IMO, as long as there is no common part of config. > if yes, why it wasn't in sparc(64) config ? Probably because it was added to netfilter config and not caught then. > leaving it in both per-arch and netfilter config is not a good idea Agreed. -- Jakub Bogusz http://qboosh.cs.net.pl/ From ankry at green.mif.pg.gda.pl Thu Feb 23 12:24:45 2006 From: ankry at green.mif.pg.gda.pl (Andrzej Krzysztofowicz) Date: Thu, 23 Feb 2006 12:24:45 +0100 (CET) Subject: SPECS: filezilla.spec (NEW) - new, builds Message-ID: <200602231124.k1NBOjUF028507@green.mif.pg.gda.pl> Hmmm, how is the locale chosen? Basing on environment with a glibc-compatible way? Maybe it is better to rename some files to be used with other locales: glen wrote: > +%lang(bg) %{_datadir}/filezilla/locales/bg > +%lang(ca) %{_datadir}/filezilla/locales/ca_ES -> ca for ca_FR > +%lang(cs) %{_datadir}/filezilla/locales/cs > +%lang(da) %{_datadir}/filezilla/locales/da_DK > +%lang(de) %{_datadir}/filezilla/locales/de > +%lang(es) %{_datadir}/filezilla/locales/es > +%lang(et) %{_datadir}/filezilla/locales/et_EE > +%lang(eu) %{_datadir}/filezilla/locales/eu > +%lang(fr_CA) %{_datadir}/filezilla/locales/fr_CA > +%lang(fr_FR) %{_datadir}/filezilla/locales/fr_FR -> fr for fr_BE, fr_CH, fr_LU > +%lang(gl) %{_datadir}/filezilla/locales/gl > +%lang(id) %{_datadir}/filezilla/locales/id_ID > +%lang(it) %{_datadir}/filezilla/locales/it_IT -> it for it_CH > +%lang(ja) %{_datadir}/filezilla/locales/ja_JP > +%lang(ko) %{_datadir}/filezilla/locales/ko_KR > +%lang(ku) %{_datadir}/filezilla/locales/ku > +%lang(lt) %{_datadir}/filezilla/locales/lt > +%lang(mk) %{_datadir}/filezilla/locales/mk > +%lang(nb) %{_datadir}/filezilla/locales/nb_NO > +%lang(nl) %{_datadir}/filezilla/locales/nl > +%lang(pl) %{_datadir}/filezilla/locales/pl_PL > +%lang(pt_BR) %{_datadir}/filezilla/locales/pt_BR > +%lang(pt_PT) %{_datadir}/filezilla/locales/pt_PT > +%lang(sl) %{_datadir}/filezilla/locales/sl > +%lang(sv) %{_datadir}/filezilla/locales/sv_SE -> sv for sv_FI > +%lang(tr) %{_datadir}/filezilla/locales/tr > +%lang(zh_CN) %{_datadir}/filezilla/locales/zh_CN > +%lang(zh_TW) %{_datadir}/filezilla/locales/zh_TW Others are well-defined at the moment. -- ======================================================================= Andrzej M. Krzysztofowicz ankry at mif.pg.gda.pl phone (48)(58) 347 14 61 Faculty of Applied Phys. & Math., Gdansk University of Technology From qboosh at pld-linux.org Thu Feb 23 12:25:48 2006 From: qboosh at pld-linux.org (Jakub Bogusz) Date: Thu, 23 Feb 2006 12:25:48 +0100 Subject: SPECS: filezilla.spec (NEW) - new, builds In-Reply-To: <200602231124.k1NBOjUF028507@green.mif.pg.gda.pl> References: <200602231124.k1NBOjUF028507@green.mif.pg.gda.pl> Message-ID: <20060223112548.GB28237@gruby.cs.net.pl> On Thu, Feb 23, 2006 at 12:24:45PM +0100, Andrzej Krzysztofowicz wrote: > > +%lang(pt_BR) %{_datadir}/filezilla/locales/pt_BR > > +%lang(pt_PT) %{_datadir}/filezilla/locales/pt_PT pt for pt_PT -- Jakub Bogusz http://qboosh.cs.net.pl/ From ankry at green.mif.pg.gda.pl Thu Feb 23 12:46:01 2006 From: ankry at green.mif.pg.gda.pl (Andrzej Krzysztofowicz) Date: Thu, 23 Feb 2006 12:46:01 +0100 (CET) Subject: SPECS: filezilla.spec (NEW) - new, builds In-Reply-To: <20060223112548.GB28237@gruby.cs.net.pl> from "Jakub Bogusz" at Feb 23, 2006 12:25:48 PM Message-ID: <200602231146.k1NBk1n2028635@green.mif.pg.gda.pl> Jakub Bogusz wrote: > > On Thu, Feb 23, 2006 at 12:24:45PM +0100, Andrzej Krzysztofowicz wrote: > > > +%lang(pt_BR) %{_datadir}/filezilla/locales/pt_BR > > > +%lang(pt_PT) %{_datadir}/filezilla/locales/pt_PT > > pt for pt_PT But in %lang only. No other pt locale than pt_BR and pt_PT exist at the moment. -- ======================================================================= Andrzej M. Krzysztofowicz ankry at mif.pg.gda.pl phone (48)(58) 347 14 61 Faculty of Applied Phys. & Math., Gdansk University of Technology From glen at delfi.ee Thu Feb 23 13:01:49 2006 From: glen at delfi.ee (Elan =?iso-8859-1?q?Ruusam=E4e?=) Date: Thu, 23 Feb 2006 14:01:49 +0200 Subject: SPECS: filezilla.spec (NEW) - new, builds In-Reply-To: <200602231124.k1NBOjUF028507@green.mif.pg.gda.pl> References: <200602231124.k1NBOjUF028507@green.mif.pg.gda.pl> Message-ID: <200602231401.49831.glen@delfi.ee> On Thursday 23 February 2006 13:24, Andrzej Krzysztofowicz wrote: > Hmmm, how is the locale chosen? Basing on environment with a > glibc-compatible way? don't know. dark grounds for me maybe this gives a clue FileZilla.cpp: bool CFileZillaApp::SetLocale(int language) { // First check if we can load the new locale wxLocale* pLocale = new wxLocale(); wxLogNull log; pLocale->Init(language); if (!pLocale->IsOk() || !pLocale->AddCatalog(_T("filezilla"))) { delete pLocale; return false; } probably would be reasonable to patch the code to use the .mo catalogs from glibc dirs? -- glen From glen at delfi.ee Thu Feb 23 13:08:03 2006 From: glen at delfi.ee (Elan =?iso-8859-1?q?Ruusam=E4e?=) Date: Thu, 23 Feb 2006 14:08:03 +0200 Subject: SPECS: filezilla.spec (NEW) - new, builds In-Reply-To: <200602231124.k1NBOjUF028507@green.mif.pg.gda.pl> References: <200602231124.k1NBOjUF028507@green.mif.pg.gda.pl> Message-ID: <200602231408.04120.glen@delfi.ee> On Thursday 23 February 2006 13:24, Andrzej Krzysztofowicz wrote: > Hmmm, how is the locale chosen? Basing on environment with a > glibc-compatible way? actually i can answer this. the locale is chosen from program configuration dialog. it appears to ignore environment settings -- glen From sparky at sparky.homelinux.org Fri Feb 24 13:51:29 2006 From: sparky at sparky.homelinux.org (Przemek Iskra) Date: Fri, 24 Feb 2006 13:51:29 +0100 Subject: SOURCES (LINUX_2_6): kernel-alpha.config, kernel-alpha-smp.config, ... In-Reply-To: <20060223054706.GA29754@fngna.oyu> References: <20060222232311.GA20662@gruby.cs.net.pl> <20060222234600.GA4627@sparky.homelinux.org> <20060223054706.GA29754@fngna.oyu> Message-ID: <20060224125129.GA5760@sparky.homelinux.org> On Thu, Feb 23, 2006 at 06:47:06AM +0100, Jakub Bogusz wrote: > On Thu, Feb 23, 2006 at 12:46:00AM +0100, Przemek Iskra wrote: > > On Thu, Feb 23, 2006 at 12:23:11AM +0100, Jakub Bogusz wrote: > > > On Wed, Feb 22, 2006 at 10:10:00PM +0100, sparky wrote: > > > > Author: sparky Date: Wed Feb 22 21:10:00 2006 GMT > > > > Module: SOURCES Tag: LINUX_2_6 > > > > ---- Log message: > > > > - remove CONFIG_XFRM, CONFIG_XFRM_USER, it's netfilter.config part > > > > > > But it's related to IPsec, not netfilter. > > > > So it should stay in per-arch config and be removed from > > netfilter.config ? > > Yes IMO, as long as there is no common part of config. so one more question; in xen configs CONFIG_XFRM_USER was set to "no", but netfilter.config changed it to "yes", and the second one was realy used, so in xen "CONFIG_XFRM_USER is not set" should stay ? -- ____ Sparky{PI] -- Przemyslaw _ ___ _ _ ........... LANG...Pl..Ca..Es..En /____) ___ ___ _ _ || Iskra | | _ \| | | : WWW........ppcrcd.pld-linux.org \____\| -_)'___| ||^'||//\\// < | _/| | | : JID......sparkyjabberes.org (____/|| (_-_|_|| ||\\ || |_ |_| |_| _| : Mail....sparkypld-linux.org From glen at delfi.ee Mon Feb 27 09:52:38 2006 From: glen at delfi.ee (Elan =?iso-8859-1?q?Ruusam=E4e?=) Date: Mon, 27 Feb 2006 10:52:38 +0200 Subject: %banner dependency Message-ID: <200602271052.39079.glen@delfi.ee> hi using %banner includes coreutils dependencies: 11:initng ########################################### [ 33%] /usr/bin/banner.sh[280]: mkdir: not found /usr/bin/banner.sh[280]: cat: not found 26:coreutils ########################################### [ 79%] should those dependencies be added to rpm-base (containing /usr/bin/banner.sh) or individual packages using %banner? for example rpm-base also contains scripts for %userremove/%groupremove macros, for those we require /usr/bin/userdel in package -- glen From mguevara at acn.waw.pl Mon Feb 27 23:15:36 2006 From: mguevara at acn.waw.pl (Marek Guevara Braun) Date: Mon, 27 Feb 2006 23:15:36 +0100 Subject: SPECS: libapreq2.spec - simplify, compatible with apache 2.0 build... In-Reply-To: References: Message-ID: <44037A08.80004@acn.waw.pl> glen wrote: > Author: glen Date: Mon Feb 27 21:16:51 2006 GMT > Module: SPECS Tag: HEAD > ---- Log message: > - simplify, compatible with apache 2.0 build, unify with other apache-mod* packages [...] > ================================================================ > Index: SPECS/libapreq2.spec > diff -u SPECS/libapreq2.spec:1.26 SPECS/libapreq2.spec:1.27 > --- SPECS/libapreq2.spec:1.26 Mon Feb 27 21:00:03 2006 > +++ SPECS/libapreq2.spec Mon Feb 27 22:16:45 2006 > @@ -127,11 +127,7 @@ [...] > -CFG="$RPM_BUILD_ROOT%{_sysconfdir}/conf.d/" > -install -d $RPM_BUILD_ROOT%{_sysconfdir} > -install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/ > -install %{SOURCE1} ${CFG}76_mod_apreq2.conf > +install -D %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/76_mod_apreq2.conf What I see from apache.spec is that conf files goes to the %{_sysconfdir}/conf.d not the %{_sysconfdir}/httpd.conf (soft link to conf.d dir). Unify this ? Cheers, Marek From glen at delfi.ee Mon Feb 27 23:29:11 2006 From: glen at delfi.ee (Elan =?iso-8859-1?q?Ruusam=E4e?=) Date: Tue, 28 Feb 2006 00:29:11 +0200 Subject: SPECS: libapreq2.spec - simplify, compatible with apache 2.0 build... In-Reply-To: <44037A08.80004@acn.waw.pl> References: <44037A08.80004@acn.waw.pl> Message-ID: <200602280029.12402.glen@delfi.ee> On Tuesday 28 February 2006 00:15, Marek Guevara Braun wrote: > What I see from apache.spec is that conf files goes to the > %{_sysconfdir}/conf.d not the %{_sysconfdir}/httpd.conf (soft link to > conf.d dir). Unify this ? currently all apache-mod* still use httpd.conf so people can rebuild apache modules for apache-2.0 without altering spec files. don't have opinon on this, as don't use personally neither apache versions in production :) -- glen From mguevara at acn.waw.pl Mon Feb 27 23:55:23 2006 From: mguevara at acn.waw.pl (Marek Guevara Braun) Date: Mon, 27 Feb 2006 23:55:23 +0100 Subject: SPECS: libapreq2.spec - simplify, compatible with apache 2.0 build... In-Reply-To: <200602280029.12402.glen@delfi.ee> References: <44037A08.80004@acn.waw.pl> <200602280029.12402.glen@delfi.ee> Message-ID: <4403835B.60407@acn.waw.pl> Elan Ruusam?e wrote: > On Tuesday 28 February 2006 00:15, Marek Guevara Braun wrote: >> What I see from apache.spec is that conf files goes to the >> %{_sysconfdir}/conf.d not the %{_sysconfdir}/httpd.conf (soft link to >> conf.d dir). Unify this ? > currently all apache-mod* still use httpd.conf so people can rebuild apache > modules for apache-2.0 without altering spec files. Good point. Marek From pluto at agmk.net Tue Feb 28 13:23:59 2006 From: pluto at agmk.net (=?utf-8?q?Pawe=C5=82_Sikora?=) Date: Tue, 28 Feb 2006 13:23:59 +0100 Subject: [BUG/poldek] overloaded provides vs. requires. Message-ID: <200602281323.59838.pluto@agmk.net> Hi, I've found another bug in poldek. Here's a testcase. $ rpm -qp --provides test2-0.1-1.x86_64.rpm interface(foo) = 1.0 interface(foo) = 2.0 interface(foo) = 3.0 interface(foo) = 4.0 test2 = 0:0.1-1 $ rpm -qp --requires test2-0.1-1.x86_64.rpm interface(foo) = 2.0 interface(foo) = 4.0 (...) $ poldek -i --test test2-0.1-1.x86_64.rpm (...) Loading [dir]th-local... 1 package read Processing dependencies... error: test2-0.1-1.x86_64: req interface(foo) = 4.0 not found There are 1 package to install: I test2-0.1-1.x86_64 Need to get 2.0KB of archives. After unpacking 20.0B will be used. error: 1 unresolved dependency ps). rpm works fine. -------------- next part -------------- Summary: overloaded provides / poldek bug Name: test2 Version: 0.1 Release: 1 License: GPL Group: Base Provides: interface(foo) = 1.0 Provides: interface(foo) = 2.0 Provides: interface(foo) = 3.0 Provides: interface(foo) = 4.0 Requires: interface(foo) = 2.0 Requires: interface(foo) = 4.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description test %prep %build touch dummy %install %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc dummy