This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On Tue, 22 Oct 2002, Christopher Faylor wrote:
> On Tue, Oct 22, 2002 at 10:15:31PM -0400, Igor Pechtchanski wrote:
> >On Tue, 22 Oct 2002, Pierre A. Humblet wrote:
> >> I would also distribute a script or a program to chmod all scripts
> >> in a tree. Under user control, not from setup.
> >
> >I have a reasonably customizable script that I use for exactly the
> >opposite -- some files in my tree are created executable, and I use this
> >script to chmod -x all those that aren't (using extensions OR magic). If
> >people think it would be helpful, I could modify it to do what you wanted
> >and send it to this list.
>
> I'd like to see what you have. Thanks for offering.
> cgf
Note that the attached script changes the mode of files to non-executable
if they *don't* conform to a particular pattern, i.e., does the opposite
of what's needed here.
The "customization" can be performed by adding extensions to EXEEXT or
patterns to EXEPAT. The patterns are separated by the ^A character
(0x01). The script currently requires perl and awk (which can be replaced
by perl). It's pretty raw, but I haven't had a reason to polish it.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51
Attachment:
fixexec
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |