Perl
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Perl

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old March 17th, 2008, 07:01 PM
James Keenan via RT
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
create autogenerated files read-only

Sat Nov 12 09:22:47 2005, leo wrote:
Not the first time I or somenone else ran into the problem of editing an
autogenerated file. Creating these files r/o would prevent from
accidental changes.


If someone could flesh out the intent of this ticket a bit more, I
suspect someone fluent in Perl 5 could take it, since most files are
written by Perl 5 processes.

Some guidance as to how to create read-only files on various Ses would
also be helpful.

Thank you very much.
kid51

Reply With Quote
  #2  
Old March 17th, 2008, 07:01 PM
chromatic
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
create autogenerated files read-only

Monday 17 March 2008 16:20:42 James Keenan via RT wrote:

If someone could flesh out the intent of this ticket a bit more, I
suspect someone fluent in Perl 5 could take it, since most files are
written by Perl 5 processes.
>

Some guidance as to how to create read-only files on various Ses would
also be helpful.

I had to add "set modeline" to my .vimrc, but now generated files respect the
line:

/* ex: set ro:

when I edit them with Vim.

Making sure that all generated files have a proper modeline seems like an
easier solution than trying to get cross-platform file permissions working.

-- c

Reply With Quote
  #3  
Old March 17th, 2008, 07:01 PM
chromatic
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
create autogenerated files read-only

Monday 17 March 2008 16:20:42 James Keenan via RT wrote:

If someone could flesh out the intent of this ticket a bit more, I
suspect someone fluent in Perl 5 could take it, since most files are
written by Perl 5 processes.
>

Some guidance as to how to create read-only files on various Ses would
also be helpful.

I had to add "set modeline" to my .vimrc, but now generated files respect the
line:

/* ex: set ro:

when I edit them with Vim.

Making sure that all generated files have a proper modeline seems like an
easier solution than trying to get cross-platform file permissions working.

-- c

Reply With Quote
  #4  
Old July 3rd, 2008, 06:10 AM
chromatic
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
create autogenerated files read-only

Monday 17 March 2008 17:06:32 Bob Rogers wrote:

I had to add "set modeline" to my .vimrc, but now generated files
respect the line:
>

/* ex: set ro:
>

when I edit them with Vim.
>

And adding "buffer-read-only: t" to "Local variables:" at the end will
do the same for Emacs.

These are the files in a pristine repository with 'ex: set ro:' in them; can
you (or another Emacs user) edit them to add the appropriate tag for Emacs?

config/gen/platform.pm
config/gen/call_list.pm
lib/Parrot//Utils.pm
lib/Parrot/Manifest.pm
lib/Parrot//Utils.pm
MANIFEST
MANIFEST.SKIP
tools/build/jit2c.pl
tools/build/pbcversion_h.pl
tools/build/vtable_extend.pl
tools/build/vtable_h.pl
tools/build/c2str.pl
tools/build/parrot_config_c.pl

-- c

Reply With Quote
  #5  
Old July 3rd, 2008, 06:10 AM
chromatic
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
create autogenerated files read-only

Monday 17 March 2008 17:06:32 Bob Rogers wrote:

I had to add "set modeline" to my .vimrc, but now generated files
respect the line:
>

/* ex: set ro:
>

when I edit them with Vim.
>

And adding "buffer-read-only: t" to "Local variables:" at the end will
do the same for Emacs.

These are the files in a pristine repository with 'ex: set ro:' in them; can
you (or another Emacs user) edit them to add the appropriate tag for Emacs?

config/gen/platform.pm
config/gen/call_list.pm
lib/Parrot//Utils.pm
lib/Parrot/Manifest.pm
lib/Parrot//Utils.pm
MANIFEST
MANIFEST.SKIP
tools/build/jit2c.pl
tools/build/pbcversion_h.pl
tools/build/vtable_extend.pl
tools/build/vtable_h.pl
tools/build/c2str.pl
tools/build/parrot_config_c.pl

-- c

Reply With Quote
  #6  
Old July 3rd, 2008, 06:10 AM
chromatic
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
create autogenerated files read-only

Monday 17 March 2008 17:06:32 Bob Rogers wrote:

I had to add "set modeline" to my .vimrc, but now generated files
respect the line:
>

/* ex: set ro:
>

when I edit them with Vim.
>

And adding "buffer-read-only: t" to "Local variables:" at the end will
do the same for Emacs.

These are the files in a pristine repository with 'ex: set ro:' in them; can
you (or another Emacs user) edit them to add the appropriate tag for Emacs?

config/gen/platform.pm
config/gen/call_list.pm
lib/Parrot//Utils.pm
lib/Parrot/Manifest.pm
lib/Parrot//Utils.pm
MANIFEST
MANIFEST.SKIP
tools/build/jit2c.pl
tools/build/pbcversion_h.pl
tools/build/vtable_extend.pl
tools/build/vtable_h.pl
tools/build/c2str.pl
tools/build/parrot_config_c.pl

-- c

Reply With Quote
  #7  
Old July 12th, 2008, 05:20 PM
Bob Rogers
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
create autogenerated files read-only

9 days and no complaints; done.

-- Bob


2008-07-12 17:28:24:
revision: 29361; author: rgrjr
[CRE] Make Emacs coda read-only in generated files (part of #37664).
=/trunk/MANIFEST: action: M
=/trunk/MANIFEST.generated: action: M
=/trunk/config/gen/call_list.pm: action: M
=/trunk/config/gen/platform.pm: action: M
=/trunk/lib/Parrot/Manifest.pm: action: M
=/trunk/lib/Parrot//Utils.pm: action: M
=/trunk/lib/Parrot//Utils.pm: action: M
=/trunk/tools/build/c2str.pl: action: M
=/trunk/tools/build/jit2c.pl: action: M
=/ action: M
=/ action: M
=/ action: M
=/trunk/tools/build/vtable_h.pl: action: M

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Perl > create autogenerated files read-only


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway