[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Re: check_po_files to clear exec bits and warn on .pot among .po's?
From:       Nicolas Goutte <nicolasg () snafu ! de>
Date:       2005-11-24 17:37:46
Message-ID: 200511241837.46676.nicolasg () snafu ! de
[Download RAW message or body]

On Thursday 24 November 2005 18:24, Chusslove Illich wrote:
> > [: Nicolas Goutte :]
> > Personally I prefer David's solution, as it only checks one file.
>
> Ok. And I also forgot the case when someone adds a new directory and uses
> check_po_files before svn add, so I put the check for each directory (no
> slowdown for that on my machine).
>
> > In any case, be careful to print a warning when a PO file is executable,
> > even if svn is not there.
>
> Then just use chmod?

Instead of testing svn beforehand, you should perhaps simply try directly to 
use svn on that file and then if it refuses, simply chmod instead.

So something like

 ! system("svn -q propdel svn:executable '$filename'") or
 system("chmod a-x '$filename'");

>
(...)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic