www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/02/13/23:58:06

Message-Id: <200102140458.XAA21123@qnx.com>
Subject: Re: [alain AT qnx DOT com: GNU_grep-2.5b_beta]
To: djgpp-workers AT delorie DOT com
Date: Tue, 13 Feb 2001 23:58:52 -0500 (EST)
From: "Alain Magloire" <alain AT qnx DOT com>
In-Reply-To: <CAEGKOHJKAAFPKOCLHDIIEJDCAAA.tim.van.holder@pandora.be> from "Tim Van Holder" at Feb 14, 2001 12:14:17 AM
X-Mailer: ELM [version 2.5 PL0b1]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> 
> >  Rem This is required because DOS/Windows are case-insensitive
> >  Rem to file names, and "make install" will do nothing if Make
> >  Rem finds a file called `install'.
> > [snip]
> > Rem install-sh is required by the configure script but clashes with the
> > Rem various Makefile install-foo targets, so we MUST have it before the
> > Rem script runs and rename it afterwards
> These should really be fixed in the makefile (those rules should be .PHONY)
> Is it automake-based? If not, I'd suggest adding .PHONY dependencies for
> all phony targets.
> 
> >  [if test -d ".\."; then
> Are you sure this test works?

Well if it did not work on DOS, Juan(?) could not have spotted the error.

>Wouldn't that resolve to 'test -d ..' on any system?

No, it will resolve to searching in the current directory "."
for a directory call ".". Which can not be in Unix, "." and ".."
always exist.

hmm, I probably confuse you even more ... see it this way
if you were looking for Unix file system as oppose to DOS file system
you would have test for this:
	if test -d "./."; then
	# Unix file

Better ?

In any case credits go to Paul Eggert and Eli for this coocoo test ;-)

-- 
au revoir, alain
----
Aussi haut que l'on soit assis, on est toujours assis que sur son cul !!!

- Raw text -


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