SCsub: Add python shebang as a hint for syntax highlighting

Also switch existing shebangs to "better" /usr/bin/env python.
This commit is contained in:
Rémi Verschelde 2016-10-17 08:50:25 +02:00
parent 89132224a6
commit fc8ccd5b8c
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):