From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31107 invoked by alias); 20 Sep 2009 19:48:16 -0000 Received: (qmail 31099 invoked by uid 22791); 20 Sep 2009 19:48:15 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_63,J_CHICKENPOX_83,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout6.012.net.il (HELO mtaout6.012.net.il) (84.95.2.16) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 20 Sep 2009 19:48:10 +0000 Received: from conversion-daemon.i-mtaout6.012.net.il by i-mtaout6.012.net.il (HyperSendmail v2007.08) id <0KQA00K00C393B00@i-mtaout6.012.net.il> for gdb-patches@sourceware.org; Sun, 20 Sep 2009 22:48:07 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.228.173.118]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KQA00972CC6QDB0@i-mtaout6.012.net.il>; Sun, 20 Sep 2009 22:48:07 +0300 (IDT) Date: Sun, 20 Sep 2009 19:48:00 -0000 From: Eli Zaretskii Subject: Re: [commit] Fix fnchange.lst In-reply-to: <83my4pv78y.fsf@gnu.org> To: brobecker@adacore.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83ljk9v1qa.fsf@gnu.org> References: <831vm3w9ic.fsf@gnu.org> <20090919155750.GU8910@adacore.com> <83ws3uvney.fsf@gnu.org> <20090920161048.GX8910@adacore.com> <83my4pv78y.fsf@gnu.org> X-IsSubscribed: yes 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: 2009-09/txt/msg00646.txt.bz2 > Date: Sun, 20 Sep 2009 20:46:53 +0300 > From: Eli Zaretskii > Cc: gdb-patches@sourceware.org > > > I don't think you'll have write priviledges. If you want, I can add > > your key to the authorized_keys, or I can commit the changes for you. > > The latter would be more than enough. I will see if I can find time > to craft a script that you wanted. Here you go. Save as "chkfnames" and invoke it like this: srcdir=FOO tmpdir=BAR ./chkfnames It will produce the list of problematic files on stdout, together with the reasons for their inclusion. tmpdir is used to create an Awk script that filters out files already renamed by fnchange.lst; you can remove that script when you are done. Enjoy. -------------------------------------- #!/bin/sh fnchange_lst="${srcdir}"/gdb/config/djgpp/fnchange.lst fnchange_awk="${tmpdir}"/fnchange.awk # Transform fnchange.lst into fnchange.awk. The program DJTAR # does a textual substitution of each file name using the list. # Generate an awk script that does the equivalent - matches an # exact line and then outputs the replacement. sed -e 's;@[^@]*@[/]*\([^ ]*\) @[^@]*@[/]*\([^ ]*\);\$0 == "\1" { print "\2"\; next\; };' \ < "${fnchange_lst}" > "${fnchange_awk}" echo '{ print }' >> "${fnchange_awk}" ( cd "${srcdir}" && find * \ -name '*.info-[0-9]*' -prune \ -o -name tcl -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 f -print ) \ | awk -f ${fnchange_awk} | doschk | sed '/The following file names are too long for SysV:/q' | fgrep -v 'The following file names are too long for SysV:' exit 0