Re: [Scons-dev] mimetypes: adding mimetype for scons scripts

2015-01-29 Thread anatoly techtonik
On Wed, Jan 28, 2015 at 6:17 PM, William Blevins wrote: > I don't see how adding a python extension to a python script is a kludge. Strictly speaking, you can't execute SConstruct with a Python interpreter, so it is not a Python script. Also, if you rename it to SConstruct.py, then SCons won't be

Re: [Scons-dev] mimetypes: adding mimetype for scons scripts

2015-01-28 Thread William Blevins
I don't see how adding a python extension to a python script is a kludge. If anything, it is stranger that SCons scripts do not have their own extension (E.G. *.scons). I understand that make may have started the trend, but that doesn't make it an lead worth following. V/R, William On Jan 28, 20

Re: [Scons-dev] mimetypes: adding mimetype for scons scripts

2015-01-28 Thread anatoly techtonik
On Wed, Jan 28, 2015 at 3:14 PM, Carnë Draug wrote: > On 23 January 2015 at 17:02, Carnë Draug wrote: >> On 21 January 2015 at 19:55, Bill Deegan wrote: >>> >>> On Wed, Jan 21, 2015 at 10:02 AM, Carnë Draug >>> wrote: On 21 January 2015 at 13:28, Carnë Draug wrote: > On 21 Janua

Re: [Scons-dev] mimetypes: adding mimetype for scons scripts

2015-01-28 Thread Carnë Draug
On 23 January 2015 at 17:02, Carnë Draug wrote: > On 21 January 2015 at 19:55, Bill Deegan wrote: >> >> On Wed, Jan 21, 2015 at 10:02 AM, Carnë Draug >> wrote: >>> >>> On 21 January 2015 at 13:28, Carnë Draug wrote: >>> > On 21 January 2015 at 13:15, Gary Oberbrunner >>> > wrote: >>> >> >>> >>

Re: [Scons-dev] mimetypes: adding mimetype for scons scripts

2015-01-28 Thread anatoly techtonik
On Wed, Jan 21, 2015 at 4:37 PM, Gary Oberbrunner wrote: > On Wed, Jan 21, 2015 at 8:28 AM, Carnë Draug > wrote: >> >> what if the magic uses the following globs for filenames "SConstruct", >> "SConscript", and "SConscript.*" ? > > These seem good to me. I think a few people may use *.scons, but

Re: [Scons-dev] mimetypes: adding mimetype for scons scripts

2015-01-23 Thread Carnë Draug
On 21 January 2015 at 19:55, Bill Deegan wrote: > > On Wed, Jan 21, 2015 at 10:02 AM, Carnë Draug > wrote: >> >> On 21 January 2015 at 13:28, Carnë Draug wrote: >> > On 21 January 2015 at 13:15, Gary Oberbrunner >> > wrote: >> >> >> >> On Wed, Jan 21, 2015 at 8:05 AM, Carnë Draug >> >> wrote:

Re: [Scons-dev] mimetypes: adding mimetype for scons scripts

2015-01-21 Thread Bill Deegan
I looked at your patch. Looks good. Only thought I had was you could probably have much more trivial files as the test files. -Bill On Wed, Jan 21, 2015 at 10:02 AM, Carnë Draug wrote: > On 21 January 2015 at 13:28, Carnë Draug wrote: > > On 21 January 2015 at 13:15, Gary Oberbrunner > wrote:

Re: [Scons-dev] mimetypes: adding mimetype for scons scripts

2015-01-21 Thread Carnë Draug
On 21 January 2015 at 13:28, Carnë Draug wrote: > On 21 January 2015 at 13:15, Gary Oberbrunner wrote: >> >> On Wed, Jan 21, 2015 at 8:05 AM, Carnë Draug >> wrote: >>> >>> ... >>> >>> scons [1] is a build system and I was thinking of adding it to >>> >>> shared-mime-info. Its files are very sim

Re: [Scons-dev] mimetypes: adding mimetype for scons scripts

2015-01-21 Thread Gary Oberbrunner
On Wed, Jan 21, 2015 at 8:28 AM, Carnë Draug wrote: > > what if the magic uses the following globs for filenames "SConstruct", > "SConscript", and "SConscript.*" ? These seem good to me. I think a few people may use *.scons, but that's probably not popular enough to deserve going into shared-m

Re: [Scons-dev] mimetypes: adding mimetype for scons scripts

2015-01-21 Thread Carnë Draug
On 21 January 2015 at 13:15, Gary Oberbrunner wrote: > > On Wed, Jan 21, 2015 at 8:05 AM, Carnë Draug > wrote: >> >> ... >> >>> scons [1] is a build system and I was thinking of adding it to >> >>> shared-mime-info. Its files are very simple to identify, they are >> >>> always named SConstruct o

Re: [Scons-dev] mimetypes: adding mimetype for scons scripts

2015-01-21 Thread Gary Oberbrunner
On Wed, Jan 21, 2015 at 8:05 AM, Carnë Draug wrote: > ... > >>> scons [1] is a build system and I was thinking of adding it to > >>> shared-mime-info. Its files are very simple to identify, they are > >>> always named SConstruct or SConscript. These files are also valid > >>> python scripts. >

Re: [Scons-dev] mimetypes: adding mimetype for scons scripts

2015-01-21 Thread Carnë Draug
On 21 January 2015 at 09:56, Charles Plessy wrote: > Le Tue, Jan 20, 2015 at 05:58:53PM +, Carnė Draug a écrit : >> >> scons [1] is a build system and I was thinking of adding it to >> shared-mime-info. Its files are very simple to identify, they are >> always named SConstruct or SConscript.

Re: [Scons-dev] mimetypes: adding mimetype for scons scripts

2015-01-21 Thread Carnë Draug
On 21 January 2015 at 01:48, Bill Deegan wrote: > > On Tue, Jan 20, 2015 at 5:28 PM, William Blevins > wrote: >> >> On Tue, Jan 20, 2015 at 12:58 PM, Carnë Draug >> wrote: >>> >>> Hi >>> >>> scons [1] is a build system and I was thinking of adding it to >>> shared-mime-info. Its files are very

Re: [Scons-dev] mimetypes: adding mimetype for scons scripts

2015-01-20 Thread Bill Deegan
What would be the benefit of doing such? _Bill On Tue, Jan 20, 2015 at 5:28 PM, William Blevins wrote: > Technically, they are just python scripts, but it's not my call to make, > so hopefully a senior dev will chime in :) > > SConstruct is a required name, but SConscript is not even though it

Re: [Scons-dev] mimetypes: adding mimetype for scons scripts

2015-01-20 Thread William Blevins
Technically, they are just python scripts, but it's not my call to make, so hopefully a senior dev will chime in :) SConstruct is a required name, but SConscript is not even though it may be the standard/convention. The subscripts can use any name you like technically. I usually include the "*.p

[Scons-dev] mimetypes: adding mimetype for scons scripts

2015-01-20 Thread Carnë Draug
Hi scons [1] is a build system and I was thinking of adding it to shared-mime-info. Its files are very simple to identify, they are always named SConstruct or SConscript. These files are also valid python scripts. Should shared-mime-info identify them (I can submit a git patch, no problem) or s