'uname -s' returns 'Darwin', I couldn't see a -o option, perhaps it's a GNU extension?
The man for 'install -p' talks about preserving the modification time of copied files. It doesn't seem to be applicable to creating a directory, so I thought it would be safe to remove. Ubuntu: apply access/modification times of SOURCE files to corresponding destination files OSX: Preserve the modification time. Copy the file, as if the -C (compare and copy) option is specified, except if the target file doesn't already exist or is different, then preserve the modification time of the file. Cheers, Robert On 7/05/08 11:01 PM, "O'Shea, David" <[EMAIL PROTECTED]> wrote: > Hi Kristis, > > Perhaps you could use the following so that the Makefile knows what the > OS is: > >>>> > ifeq (FOO,$(shell uname -o)) > IS_MAC_OS_X=1 > endif > [...] > make_directory := install $(if $(IS_MAC_OS_X),,-p) -d -o $(user) -g > $(group) -m 755 > <<< > > where FOO is what 'uname -o' returns on OS X, assuming of course it is > unique to OS X. > > Portability may be an issue - I gather from the info page for GNU make > that 'ifeq' is a GNU-specific thing, but I'm not sure about the $(if). > I think the 'ifeq' could be replaced with: > > IS_MAC_OS_X=$(filter FOO,$(shell uname -o)) > > if $(if) is more portable. > > Regards, > David > > > ---------------------------------------------- > David O'Shea > Senior Engineer > DSpace Pty Ltd > (an EMS Technologies Company) > > [EMAIL PROTECTED] > www.emssatcom.com > T: +61 8 8260 8118 > > >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of >> Kristis Makris >> Sent: Wednesday, 7 May 2008 1:16 PM >> To: Robert Egglestone >> Cc: [EMAIL PROTECTED]; [email protected] >> Subject: Re: [scmbug-users] JIRA status >> >>> Thanks for the patch: >>> >>> http://bugzilla.mkgnu.net/show_bug.cgi?id=1170 >>> >>> Is there some way the Makefile can know we are running on >> Mac OS X so we >>> don't use "-p". Not using it for all systems sounds limiting. >> >> Mmmm, we may have to break down and use AC_CANONICAL_SYSTEM in >> configure.in, which leads to "other issues" (automake battles) >> _______________________________________________ scmbug-users mailing list [email protected] http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users
