Merge pull request #6850 from akien-mga/pr-scsub-shebang

SCsub: Add python shebang as a hint for syntax highlighting
This commit is contained in:
Rémi Verschelde 2016-10-17 20:13:18 +02:00 committed by GitHub
commit e96c49f849
88 changed files with 168 additions and 8 deletions

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
EnsureSConsVersion(0,14); EnsureSConsVersion(0,14);

View File

@ -1,3 +1,5 @@
#!/usr/bin/python
Import('env') Import('env')
Export('env') Export('env')

View File

@ -1,3 +1,5 @@
#!/usr/bin/python
Import('env') Import('env')
env.tests_sources=[] env.tests_sources=[]

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.core_sources=[] env.core_sources=[]

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.core_sources,"*.cpp") env.add_source_files(env.core_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.core_sources,"*.cpp") env.add_source_files(env.core_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.core_sources,"*.cpp") env.add_source_files(env.core_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.core_sources,"*.cpp") env.add_source_files(env.core_sources,"*.cpp")

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys import sys

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
import sys import sys
import re import re

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys import sys

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys import sys

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys import sys

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import codecs import codecs

2
drivers/SCsub vendored
View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.drivers_sources=[] env.drivers_sources=[]

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.drivers_sources, "*.cpp") env.add_source_files(env.drivers_sources, "*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.drivers_sources, "*.cpp") env.add_source_files(env.drivers_sources, "*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
if (env["platform"] in ["haiku","osx","windows","x11"]): if (env["platform"] in ["haiku","osx","windows","x11"]):

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.drivers_sources, "*.cpp") env.add_source_files(env.drivers_sources, "*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
if env['BUILDERS'].has_key('GLSL120GLES'): if env['BUILDERS'].has_key('GLSL120GLES'):

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.drivers_sources, "*.cpp") env.add_source_files(env.drivers_sources, "*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env_png = env.Clone() env_png = env.Clone()

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.drivers_sources, "*.cpp") env.add_source_files(env.drivers_sources, "*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
# Not cloning the env, the includes need to be accessible for platform/ # Not cloning the env, the includes need to be accessible for platform/

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
g_set_p='#ifdef UNIX_ENABLED\n' g_set_p='#ifdef UNIX_ENABLED\n'

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.drivers_sources, "*.cpp") env.add_source_files(env.drivers_sources, "*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
# Not cloning the env, the includes need to be accessible for core/ # Not cloning the env, the includes need to be accessible for core/

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.main_sources=[] env.main_sources=[]

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env_modules = env.Clone() env_modules = env.Clone()

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
Import('env_modules') Import('env_modules')

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.modules_sources, "*.cpp") env.add_source_files(env.modules_sources, "*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
Import('env_modules') Import('env_modules')

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
Import('env_modules') Import('env_modules')

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
Import('env_modules') Import('env_modules')

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
# Not building in a separate env as core needs it # Not building in a separate env as core needs it

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.modules_sources, "*.cpp") env.add_source_files(env.modules_sources, "*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.modules_sources, "*.cpp") env.add_source_files(env.modules_sources, "*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.modules_sources, "*.cpp") env.add_source_files(env.modules_sources, "*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
Import('env_modules') Import('env_modules')

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
Import('env_modules') Import('env_modules')

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
Import('env_modules') Import('env_modules')

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
Import('env_modules') Import('env_modules')

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
Import('env_modules') Import('env_modules')

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
Import('env_modules') Import('env_modules')

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
Import('env_modules') Import('env_modules')

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
Import('env_modules') Import('env_modules')

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
Import('env_modules') Import('env_modules')

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.modules_sources, "*.cpp") env.add_source_files(env.modules_sources, "*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
Import('env_modules') Import('env_modules')

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
Import('env_modules') Import('env_modules')

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
import shutil import shutil
Import('env') Import('env')

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
bb10_lib = [ bb10_lib = [

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
common_haiku = [ common_haiku = [

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
iphone_lib = [ iphone_lib = [

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
javascript_files = [ javascript_files = [

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
files = [ files = [

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
files = [ files = [

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.scene_sources,"*.cpp") env.add_source_files(env.scene_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.scene_sources=[] env.scene_sources=[]

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.scene_sources,"*.cpp") env.add_source_files(env.scene_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.scene_sources,"*.cpp") env.add_source_files(env.scene_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.scene_sources,"*.cpp") env.add_source_files(env.scene_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.scene_sources,"*.cpp") env.add_source_files(env.scene_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.scene_sources,"*.cpp") env.add_source_files(env.scene_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.scene_sources,"*.cpp") env.add_source_files(env.scene_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.scene_sources,"*.cpp") env.add_source_files(env.scene_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.servers_sources=[] env.servers_sources=[]

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.servers_sources,"*.cpp") env.add_source_files(env.servers_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.servers_sources,"*.cpp") env.add_source_files(env.servers_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.servers_sources,"*.cpp") env.add_source_files(env.servers_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.servers_sources,"*.cpp") env.add_source_files(env.servers_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.servers_sources,"*.cpp") env.add_source_files(env.servers_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.servers_sources,"*.cpp") env.add_source_files(env.servers_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.servers_sources,"*.cpp") env.add_source_files(env.servers_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.tool_sources=[] env.tool_sources=[]

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.tool_sources,"*.cpp") env.add_source_files(env.tool_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
env.add_source_files(env.tool_sources,"*.cpp") env.add_source_files(env.tool_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
Export('env') Export('env')
env.add_source_files(env.tool_sources,"*.cpp") env.add_source_files(env.tool_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
def make_editor_icons_action(target, source, env): def make_editor_icons_action(target, source, env):

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
Export('env') Export('env')
env.add_source_files(env.tool_sources,"*.cpp") env.add_source_files(env.tool_sources,"*.cpp")

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
Import('env') Import('env')
Export('env') Export('env')
env.add_source_files(env.tool_sources,"*.cpp") env.add_source_files(env.tool_sources,"*.cpp")

View File

@ -1,4 +1,4 @@
#! /usr/bin/python #! /usr/bin/env python
import sys import sys
if (len(sys.argv)<2): if (len(sys.argv)<2):