From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30147 invoked by alias); 26 Oct 2007 07:44:18 -0000 Received: (qmail 29871 invoked by uid 22791); 26 Oct 2007 07:44:14 -0000 X-Spam-Check-By: sourceware.org Received: from ics.u-strasbg.fr (HELO ics.u-strasbg.fr) (130.79.112.250) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 26 Oct 2007 07:44:09 +0000 Received: from ICSMULLER (laocoon.u-strasbg.fr [130.79.112.72]) by ics.u-strasbg.fr (Postfix) with ESMTP id 1D8B718701A; Fri, 26 Oct 2007 09:48:34 +0200 (CEST) From: "Pierre Muller" To: Cc: "'Eli Zaretskii'" , Subject: [RFC] Doschk.c and update-web-ari changes Date: Fri, 26 Oct 2007 07:56:00 -0000 Message-ID: <002601c817a3$fcdf7470$f69e5d50$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-us Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-10/txt/msg00703.txt.bz2 Here are the changes I made to doschk.c and update-web-ari to get a better result. The changes inside doschk.c are mainly aimed to facilitate the correct handling by update-web-ari. The output I get on my locally generated web page is shown below, after the patch itself. As you will see, lots of these duplicates are in directories that will probably not be in the DJGPP gdb sources. There is also a change that adds a link to source for each source listed in the main table. This links directly to the HEAD source for the current version via the ~checkout~ or to the revision log for the last branch, as I found no way to link directly to the last entry in that branch... Daniel, if you could look at this, adapt it and commit it to ss directory, it would be great. Someone would also need to compile doschk.c on the machine running the script and to the executable in the path, so that the script can execute it. Pierre Muller Pseudo ChangeLog: 2007-10-26 Pierre Muller * doschk.c (fill_ent): Use lowercase characters. (display_problems): Also proint relative path with dos_name. update-web-ari (doscheck part): Ignore some newer directories. Print the long name of all duplicates together with the common short_name entry. (print_table): Add link to source via cvsweb. Index: doschk.c =================================================================== RCS file: /cvs/gdbadmin/ss/doschk.c,v retrieving revision 1.1 diff -u -p -r1.1 doschk.c --- doschk.c 12 Oct 2001 20:20:39 -0000 1.1 +++ doschk.c 26 Oct 2007 07:20:08 -0000 @@ -247,8 +247,8 @@ fill_ent (ent, path) chars_seen++; break; } - if (islower (*cp)) - *dp++ = toupper (*cp); + if (isupper (*cp)) + *dp++ = tolower (*cp); else *dp++ = *cp; chars_seen++; @@ -353,7 +353,8 @@ display_problems () printf ("The following resolve to special DOS device names:\n"); first_err = 0; } - printf ("%-14s : %s\n", elist[i]->dos_name, mpath (elist[i])); + printf ("%s/%-14s : %s\n", elist[i]->path, + elist[i]->dos_name, mpath (elist[i])); break; } dos_dev_name++; @@ -382,7 +383,8 @@ display_problems () } if (first) { - printf ("%-14s : %s\n", elist[i]->dos_name, mpath (elist[i])); + printf ("%s/%-14s : %s\n", elist[i]->path, + elist[i]->dos_name, mpath (elist[i])); first = 0; } printf ("\t\t %s\n", mpath (elist[i + 1])); Index: update-web-ari =================================================================== RCS file: /cvs/gdbadmin/ss/update-web-ari,v retrieving revision 1.139 diff -u -p -r1.139 update-web-ari --- update-web-ari 14 Aug 2005 22:47:46 -0000 1.139 +++ update-web-ari 26 Oct 2007 07:20:08 -0000 @@ -190,12 +190,16 @@ then ( cd "${srcdir}" && find * \ -name '*.info-[0-9]*' -prune \ -o -name tcl -prune \ + -o -name winsup -prune \ + -o -name newlib -prune \ + -o -name CVS -prune \ -o -name itcl -prune \ -o -name tk -prune \ -o -name libgui -prune \ -o -name tix -prune \ -o -name dejagnu -prune \ -o -name expect -prune \ + -o -type d -print \ -o -type f -print ) \ | $AWK -f ${fnchange_awk} > ${doschk_in} @@ -237,21 +241,18 @@ state == same_dos { # ari.*.bug: :: : : print file ":0: " category[state] ": " \ name " " bug[state] " " " dup: " \ - " DOSCHK - the names " name " and " file " resolve to the same" \ - " file on a " bug[state] \ - " system.
For DOS, this can be fixed by modifying the file" \ - " fnchange.lst." + " Filename " file next } state == invalid_dos { # ari.*.bug: :: : : - print file ":0: " category[state] ": " name ": DOSCHK - " name + print file ":0: " category[state] ": " name ": DOSCHK - " file " " name next } state == internal { # ari.*.bug: :: : : print file ":0: " category[state] ": " bug[state] ": DOSCHK - a " \ - bug[state] " problem" + bug[state] " problem in " file } ' fi @@ -305,6 +306,10 @@ BEGIN { # ari.*.idx: :: print bug ":" file ":" category } + if ((file != "") && (category == "dos") && (count[bug] > 1)) { + doc[bug] = doc[bug] "
" $5 + } + # Also accumulate some categories as obsolete if (category == "deprecated") { # ari.*.idx: :: @@ -496,6 +501,7 @@ function print_totals (where, bug_i) { BEGIN { FS = ":" '"${categories}"' + wwwdir = "'"${wwwdir}"'"; nr_file = 0; nr_bug = 0; } @@ -577,7 +583,14 @@ END { pfile = gensub(/^'${project}'\//, "", 1, file) print "" print "" - print "" pfile "" + print " " + printf pfile "" printf "" printf "%s", file_total[file] printf ">", file, next_bug[file, 0] Example output DOS 8.3 File Names File names with problems on 8.3 file systems. BUG Total Description gdb/features/rs6000/powerpc-.c DOS 8.3 dup 13 Filename gdb/features/rs6000/powerpc-32.c Filename gdb/features/rs6000/powerpc-403.c Filename gdb/features/rs6000/powerpc-403gc.c Filename gdb/features/rs6000/powerpc-505.c Filename gdb/features/rs6000/powerpc-601.c Filename gdb/features/rs6000/powerpc-602.c Filename gdb/features/rs6000/powerpc-603.c Filename gdb/features/rs6000/powerpc-604.c Filename gdb/features/rs6000/powerpc-64.c Filename gdb/features/rs6000/powerpc-7400.c Filename gdb/features/rs6000/powerpc-750.c Filename gdb/features/rs6000/powerpc-860.c Filename gdb/features/rs6000/powerpc-e500.c gdb/features/rs6000/powerpc-.xml DOS 8.3 dup 13 Filename gdb/features/rs6000/powerpc-32.xml Filename gdb/features/rs6000/powerpc-403.xml Filename gdb/features/rs6000/powerpc-403gc.xml Filename gdb/features/rs6000/powerpc-505.xml Filename gdb/features/rs6000/powerpc-601.xml Filename gdb/features/rs6000/powerpc-602.xml Filename gdb/features/rs6000/powerpc-603.xml Filename gdb/features/rs6000/powerpc-604.xml Filename gdb/features/rs6000/powerpc-64.xml Filename gdb/features/rs6000/powerpc-7400.xml Filename gdb/features/rs6000/powerpc-750.xml Filename gdb/features/rs6000/powerpc-860.xml Filename gdb/features/rs6000/powerpc-e500.xml gdb/regformats/rs6000/powerpc-.dat DOS 8.3 dup 3 Filename gdb/regformats/rs6000/powerpc-32.dat Filename gdb/regformats/rs6000/powerpc-64.dat Filename gdb/regformats/rs6000/powerpc-e500.dat libdecnumber/bid/decimal1.h DOS 8.3 dup 3 Filename libdecnumber/bid/decimal128.h Filename libdecnumber/bid/decimal128Local.h Filename libdecnumber/bid/decimal128Symbols.h libdecnumber/bid/host-iee.c DOS 8.3 dup 3 Filename libdecnumber/bid/host-ieee128.c Filename libdecnumber/bid/host-ieee32.c Filename libdecnumber/bid/host-ieee64.c libdecnumber/decnumbe.h DOS 8.3 dup 3 Filename libdecnumber/decNumber.h Filename libdecnumber/decNumberLocal.h Filename libdecnumber/decNumberSymbols.h libdecnumber/dpd/decimal1.h DOS 8.3 dup 3 Filename libdecnumber/dpd/decimal128.h Filename libdecnumber/dpd/decimal128Local.h Filename libdecnumber/dpd/decimal128Symbols. too many dots 3 DOSCHK - intl/config.h.in too many dots DOSCHK - intl/config.intl.in too many dots DOSCHK - readline/examples/rlfe/config.h.in too many dots bfd/cpu-cr16.c DOS 8.3 dup 2 Filename bfd/cpu-cr16.c Filename bfd/cpu-cr16c.c bfd/elf32-sh.h DOS 8.3 dup 2 Filename bfd/elf32-sh-relocs.h Filename bfd/elf32-sh64.h bfd/elf32-sp.c DOS 8.3 dup 2 Filename bfd/elf32-sparc.c Filename bfd/elf32-spu.c gdb/changelo DOS 8.3 dup 2 Filename gdb/ChangeLog Filename gdb/ChangeLog-2006 gdb/features/mips64-c.xml DOS 8.3 dup 2 Filename gdb/features/mips64-cp0.xml Filename gdb/features/mips64-cpu.xml gdb/regformats/reg-x86-.dat DOS 8.3 dup 2 Filename gdb/regformats/reg-x86-64-linux.dat Filename gdb/regformats/reg-x86-64.dat gdb/testsuite/gdb.arch/i386-siz.c DOS 8.3 dup 2 Filename gdb/testsuite/gdb.arch/i386-size-overlap.c Filename gdb/testsuite/gdb.arch/i386-size.c gdb/testsuite/gdb.arch/i386-siz.exp DOS 8.3 dup 2 Filename gdb/testsuite/gdb.arch/i386-size-overlap.exp Filename gdb/testsuite/gdb.arch/i386-size.exp gdb/testsuite/gdb.base/solib-sy.c DOS 8.3 dup 2 Filename gdb/testsuite/gdb.base/solib-symbol-lib.c Filename gdb/testsuite/gdb.base/solib-symbol-main.c gdb/testsuite/gdb.base/type-opa.c DOS 8.3 dup 2 Filename gdb/testsuite/gdb.base/type-opaque-lib.c Filename gdb/testsuite/gdb.base/type-opaque-main.c gdb/testsuite/gdb.mi/mi-var-c.exp DOS 8.3 dup 2 Filename gdb/testsuite/gdb.mi/mi-var-child-f.exp Filename gdb/testsuite/gdb.mi/mi-var-cp.exp libdecnumber/bid/decimal3.h DOS 8.3 dup 2 Filename libdecnumber/bid/decimal32.h Filename libdecnumber/bid/decimal32Symbols.h libdecnumber/bid/decimal6.h DOS 8.3 dup 2 Filename libdecnumber/bid/decimal64.h Filename libdecnumber/bid/decimal64Symbols.h libdecnumber/decconte.h DOS 8.3 dup 2 Filename libdecnumber/decContext.h Filename libdecnumber/decContextSymbols.h libdecnumber/decdoubl.h DOS 8.3 dup 2 Filename libdecnumber/decDouble.h Filename libdecnumber/decDoubleSymbols.h libdecnumber/decpacke.h DOS 8.3 dup 2 Filename libdecnumber/decPacked.h Filename libdecnumber/decPackedSymbols.h libdecnumber/decsingl.h DOS 8.3 dup 2 Filename libdecnumber/decSingle.h Filename libdecnumber/decSingleSymbols.h libdecnumber/dpd/decimal3.h DOS 8.3 dup 2 Filename libdecnumber/dpd/decimal32.h Filename libdecnumber/dpd/decimal32Symbols.h libdecnumber/dpd/decimal6.h DOS 8.3 dup 2 Filename libdecnumber/dpd/decimal64.h Filename libdecnumber/dpd/decimal64Symbols.h opcodes/changelo DOS 8.3 dup 2 Filename opcodes/ChangeLog Filename opcodes/ChangeLog-2006 sim/testsuite/sim/cris/c/mprotect.c DOS 8.3 dup 2 Filename sim/testsuite/sim/cris/c/mprotect1.c Filename sim/testsuite/sim/cris/c/mprotect2.c sim/testsuite/sim/cris/c/rtsigpro.c DOS 8.3 dup 2 Filename sim/testsuite/sim/cris/c/rtsigprocmask1.c Filename sim/testsuite/sim/cris/c/rtsigprocmask2.c sim/testsuite/sim/cris/c/rtsigsus.c DOS 8.3 dup 2 Filename sim/testsuite/sim/cris/c/rtsigsuspend1.c Filename sim/testsuite/sim/cris/c/rtsigsuspend2.c sim/testsuite/sim/cris/c/sigretur.c DOS 8.3 dup 2 Filename sim/testsuite/sim/cris/c/sigreturn3.c Filename sim/testsuite/sim/cris/c/sigreturn4.c sim/testsuite/sim/mips/mips32-d.s DOS 8.3 dup 2 Filename sim/testsuite/sim/mips/mips32-dsp.s Filename sim/testsuite/sim/mips/mips32-dsp2.s