[Tutor] OT: How to automate the setting of file permissions for all files in a collection of programs?
Alan Gauld
alan.gauld at yahoo.co.uk
Thu Aug 30 06:41:51 EDT 2018
On 30/08/18 10:30, Cameron Simpson wrote:
>> That is inherent in using version control systems.
>
...> state. Personally I use mercurial which does include the
permissions in the
> state.
Ah, interesting. I've never found a VC system that preserved
permissions. Usually they zap everything to read-only on
first export. Then change them to read-write when you
check out etc, then back to read-only on checkin. I never
assume anything about permissions from a VC system and
always set them as they should be in the make file
or installer.
> But there's also the issue of Windows permissions versus UNIX permissions.
Very true aqnd that varies by file system too. (FAT v NTFS etc)
> If he can mount a Solaris drive (NFS or SMB) he can just copy the files :-)
Yes, but rsync will ensure only the changed files get copied.
Although I think DOS XCOPY can maybe do that too, which might
be another option...
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list