delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/07/28/09:07:19

From: mh AT mike DOT franken DOT de (Michael Hirmke)
Subject: Re: GNUMAKE help...
28 Jul 1998 09:07:19 -0700 :
Message-ID: <6yg7eIZ$pfB.cygnus.gnu-win32@mike.franken.de>
References: <35bdeb2d DOT 7253395 AT mail DOT CLOUD9 DOT NET>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Hi John,

[...]
>has a lower case name... then the pattern rule triggers. I can't just
>rename them all to lower case because the rename command belives that
>filename and FILENAME are the same and refuses to do the deed.

Save this as "tolower":
------------------------< snip snip snip >-----------------------------
#!/usr/bin/bash

for s in $*
do
  [ "$s" = "`basename $0`" ] && continue
  l=$( echo $s | tr '[A-Z]' '[a-z]' )
  echo "mv ${s} ${l}"
  mv "${s}" "${l}.___" && mv "${l}.___" "${l}"
done
------------------------< snip snip snip >-----------------------------

>
>I would appreciate any hints.
>
>I have read all the doc, and some of the source (main.c/read.c/job.c)
>and can't find any references. I am running using MAKE_MODE=UNIX because
>I need the sh.exe facilities.
>
>Thanks for your time!!
>
>john

BYe.
Michael.
--
Michael Hirmke           | Telefon +49 (911) 557999
Georg-Strobel-Strasse 81 | FAX     +49 (911) 557664
90489 Nuernberg          | E-Mail  mailto:mh AT mike DOT franken DOT de
                         | WWW     http://aquarius.franken.de/
-
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