From owner-freebsd-perl@FreeBSD.ORG Sun May 17 03:19:46 2015 Return-Path: Delivered-To: freebsd-perl@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0A404573 for ; Sun, 17 May 2015 03:19:46 +0000 (UTC) Received: from nm36.bullet.mail.bf1.yahoo.com (nm36.bullet.mail.bf1.yahoo.com [72.30.239.5]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A71EA17E8 for ; Sun, 17 May 2015 03:19:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1431832350; bh=paYYDmmStHNFeZrReb/2xcr/d2T0WdNjT+qAE8/NjPk=; h=Date:From:To:CC:Subject:References:In-Reply-To:From:Subject; b=MBn5EDTcbf30U1QvGjBP0ou5AIY2ByS0gIsskfEgSMl5+yxP4Bn4LuE0qfhO+A5dR/RnWq2a4guHpN7m7dNzjx0c+VgdPEaaG6xP4q60eqV7l7/6gew2iUnuBJQYV9YC1HnMFfnDYmYVXB5vDVidR/jAETCBkoQxFWSCpSJkK3hkM7/1sYpNbjzRq7ip9YbthaZjhiq3hVuYEBPKHdKRmjAiO7wgkAHXYXxINnWSB+ucvlaHG6nmLdVbn8M6+2SYVz5ERO58CiqUixvKAKo1Cu0PmR1yz/9EQrRv6NNTiRAf6JGHDwuQWVSQwelKvy8AebUG2Ziapshb0z3scVbY8g== Received: from [66.196.81.174] by nm36.bullet.mail.bf1.yahoo.com with NNFMP; 17 May 2015 03:12:30 -0000 Received: from [98.139.213.11] by tm20.bullet.mail.bf1.yahoo.com with NNFMP; 17 May 2015 03:12:30 -0000 Received: from [127.0.0.1] by smtp111.mail.bf1.yahoo.com with NNFMP; 17 May 2015 03:12:30 -0000 X-Yahoo-Newman-Id: 400682.30658.bm@smtp111.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: ZIDi5.cVM1kSKV3xz4yKmDuhlcC3Y91_Fpptc2iib3URJoL VrhwSraZFVPlAYAcD7IQH5dzZ16B8ebpuSwNOMhva1.7bcIxHuaJT.5609H5 1sGaByhXN8.3TusqmL3nqdirLXX2baEs87agtdRnJnQCHC_hPkbqoCZE6veC HuCfl9fUaa1mDij6YYsOfAZty5lI4PhFAPCeKiRqxLBBUKIyasUSowkoqYPT 1R67b5NWCRlwyLmXqfc9ZzSvdbyergPVL.t5jl5bWNVuf9xaWA9sERU_cUho Cc7HzeMKBMfG4pUKPqopI2BHlHE0ZSjjAV.myqd6PLbKl6U2TLv1cHcqgoOh wWxIes9NTznSNcUUedgaELk7HnfbGZrkQH8UP0E1ZTHFxHU0lGO77IAB5Yrg MgkRtNeNbdsBrITTqKi8iCOTWuhMI9Df3qcUB9zFSYkbueInHrg29bunSDrb IwHDICP3HwJPsaQZ9vs3r6uZREOLxIgE.p11GmLj4TNRRTiZX661rT6BkPej qzgqLGJbiSw5G4cNzeAsKl2D2BHp5fxC7.05Ckg-- X-Yahoo-SMTP: 6IZaPQyswBAeyzp3urHRlQfBxGxx4Js3YAIn Message-ID: <555806C7.4010402@yahoo.com> Date: Sat, 16 May 2015 20:11:03 -0700 From: Jeffrey Bouquet User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-perl@freebsd.org CC: ports@freebsd.org Subject: Re: Invalid version format (non-numeric data) ... Perl broken... References: <1431743111.34209.YahooMailBasic@web140905.mail.bf1.yahoo.com> In-Reply-To: <1431743111.34209.YahooMailBasic@web140905.mail.bf1.yahoo.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 May 2015 03:19:46 -0000 On 05/15/15 19:25, Jeffrey Bouquet via freebsd-ports wrote: > Freebsd 10 STABLE > > perl5-5.20.2_4 > > 1... > Error in Makefile.PL line 21 > [building p5-Gtk2] > while trying to build to fix... > > 2... > Line 49 in gprename (x11-fm) > line 26 in Gtk2.pm (p5-Gtk2) > [running gprename] > > Trying to rename files that are slightly too lengthy for > cli rename tools. This error appears trying to run or build... > .... > similar > ...... > 3... > p5-AnyEvent > Invalid version format (non-numeric data) at /usr/local/lib/ > perl5/site_perl/ExtUtils/MakeMaker.pm line 6. > > Slight chance the contexts are off a bit, the the errors in sum total > are there. [Like plainly in example # 3] > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" Figuring as perl won't rebuild, and many other perl cli won't run, and most AFAIK or all perl ports won't build... I've saved about eight .htm on renaming. 'rename' fails (too many arguments)... BUT fyi we have a TOOL... kind of off topic for the perl list; apologies. Not my script. rename001002.sh ....................................................................................................................... #!/bin/sh filePrefix="$1" sequence=1 for file in $(ls -tr *.jpg) ; do renamedFile="$filePrefix$sequence.jpg" echo $renamedFile currentFile="$(echo $file)" echo "renaming \"$currentFile\" to $renamedFile" mv "$currentFile" "$renamedFile" sequence=$(($sequence+1)) done exit 0 ....................................................................................................................... # rename new-file-name- will rename site_00xxx000xxxjjFFjjFF.jpg (a slew of whatever *.jpg) to new-file-name-001.jpg new-file-name-002.jpg Worked here at least once. pardon for any typos Hope this saves someone hours of web searching sometime, if 'rename' fails and gprename doesn't load etc...