Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
[BUG] Makefile $(TOUCH), doesn't
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jeff Clites  
View profile  
 More options Oct 31 2004, 3:33 pm
Newsgroups: perl.perl6.internals
From: parrotbug-follo...@parrotcode.org (Jeff Clites)
Date: Sun, 31 Oct 2004 12:33:53 -0800
Local: Sun, Oct 31 2004 3:33 pm
Subject: [perl #32245] [BUG] Makefile $(TOUCH), doesn't
# New Ticket Created by  Jeff Clites
# Please include the string:  [perl #32245]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=32245 >

The Makefile uses this in place of the 'touch' command:

        perl -e 'open(A,qq{>>$_}) or die foreach @ARGV'

On Mac OS X at least, this doesn't result in updating the timestamp of
the passed-in files. (Also, by my reading of the POSIX/SUSv3 spec, this
is correct behavior--open() isn't supposed to update the timestamp of
an existing file.)

I wonder if this works on any platform--maybe Win32?

I suggest that the value of TOUCH be configurable, defaulting to the
'touch' command on Unix-like systems--not sure what to use for other
systems. Or we could try this, which might work for all systems:

        perl -e '$now = time; open(A,qq{>>$_}) && utime($now, $now, $_) or die
foreach @ARGV'

I don't know the origin of what we currently have, so I thought I'd
send this in for comment before supplying a patch.

(I noticed this because the "ast" part of the Makefile was firing for
me every time.)

JEff


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael G Schwern  
View profile  
 More options Oct 31 2004, 8:18 pm
Newsgroups: perl.perl6.internals
From: schw...@pobox.com (Michael G Schwern)
Date: Sun, 31 Oct 2004 20:18:48 -0500
Local: Sun, Oct 31 2004 8:18 pm
Subject: Re: [perl #32245] [BUG] Makefile $(TOUCH), doesn't

On Sun, Oct 31, 2004 at 12:33:53PM -0800, Jeff Clites wrote:
> The Makefile uses this in place of the 'touch' command:

>    perl -e 'open(A,qq{>>$_}) or die foreach @ARGV'

> On Mac OS X at least, this doesn't result in updating the timestamp of
> the passed-in files. (Also, by my reading of the POSIX/SUSv3 spec, this
> is correct behavior--open() isn't supposed to update the timestamp of
> an existing file.)

> I wonder if this works on any platform--maybe Win32?

> I suggest that the value of TOUCH be configurable, defaulting to the
> 'touch' command on Unix-like systems--not sure what to use for other
> systems. Or we could try this, which might work for all systems:

ExtUtils::Command provides tested cross-platform versions of the most
common shell functions.  These should be used.

For example:

        perl -"MExtUtils::Command" -e touch

--
Michael G Schwern        schw...@pobox.com  http://www.pobox.com/~schwern/
IIRC someone observed that they couldn't name identifiers in Ethiopian,
because there was an Ethiopian character similar in function to _ which
wasn't in \w
        -- Nicholas Clark demonstrates that the Internet works
           in <20030812162406.W20...@plum.flirble.org>


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google