delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/03/15/16:08:20

From: pault AT corbina DOT ru (Paul At Home.)
Subject: prebuild cygperl5.004_04. Was: Another vote on the case-sensitivity issue
15 Mar 1998 16:08:20 -0800 :
Message-ID: <01BD4FFE.2C8F53C0.cygnus.gnu-win32@HOME>
Mime-Version: 1.0
To: "'gnu-win32 AT cygnus DOT com'" <gnu-win32 AT cygnus DOT com>

     For those of you without perl win32 you are welcome to download 
prebuild binary distribution of cygperl v 5.004_04  based on CygWin Beta 19 
with  DBD:mSQL, DBD:ODBC,  DBD:Oracle, libwww-perl, perl-wish GUI  
ant some other prebuild extensions from http://www.qub.com/group/

     At the moment it is tested with Windows NT 4.0. Win95 testing 
is in progress as well as preparing 'mission' document.  

     Briefly - our goal was to produce useful and easy-to-use 
cygperl / win32 distribution. We are glad to discuss this idea with 
everybody who may be interested in such activity - feel free to 
write us.

Regards. Paul. 
group AT qub DOT com

----------
From: 	Donald O. Sitze
Sent: 	Wednesday, March 11, 1998 8:47 PM
To: 	Randall; gnu-win32 AT cygnus DOT com
Subject: 	Re: Another vote on the case-sensitivity issue


-----Original Message-----
From: Randall <randall AT alum DOT mit DOT edu>
To: gnu-win32 AT cygnus DOT com <gnu-win32 AT cygnus DOT com>
Date: Wednesday, March 11, 1998 5:44 AM
Subject: Another vote on the case-sensitivity issue

>Btw, for those of you fortunate enough to have perl for Win32 installed (I
>gotta do that one of these days!), you might have use for an adaptation of
>the following perl script:
>
>#!/usr/local/bin/perl -w
>## tolower.pl:  Convert listed filenames to lowercase
>## Copyright 1997-1998  Randall Whitman
>## May be copied under terms of the GNU General Public License
>
>mkdir Tmp,777 or die "Tmp already exists.";
>chmod 0700, Tmp;
>
>foreach $file (@ARGV)
>{
>    print $file, "\t", lc($file), "\n";
>    system "mv $file Tmp";
>    $outfile = lc($file);
>    system "cp -p Tmp/$file $outfile";
>}
>

for those of you without perl, the following shell script might be useful
++++++++++++++ cut ++++++++++++
#!/bin/bash
# file: smallnames
#     recursively convert all files and directories to lowercase names
# usage:
#     smallnames <directory>
for f
do
   newname=`echo $f | tr A-Z a-z`
   if [ $f != $newname ]; then
      mv $f $f.lc
      echo -e $f \=\> $newname
      mv $f.lc $newname
   fi
   if [ -d $newname ]; then
      cd $newname
      pwd
      smallnames `ls` &
      cd ..
   fi
done

++++++++++++++ cut ++++++++++++

Note this will recursively traverse your directories from the starting
point, so be careful.

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019