Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: site_scons/site_tools/publish.py

Issue 12450015: **/*.py: use /usr/bin/env to find python Base URL: https://chromium.googlesource.com/native_client/src/native_client@master
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « site_scons/site_tools/naclsdk.py ('k') | site_scons/site_tools/replicate.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python2.4 1 #!/usr/bin/env python
2 # Copyright 2009, Google Inc. 2 # Copyright 2009, Google Inc.
3 # All rights reserved. 3 # All rights reserved.
4 # 4 #
5 # Redistribution and use in source and binary forms, with or without 5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are 6 # modification, are permitted provided that the following conditions are
7 # met: 7 # met:
8 # 8 #
9 # * Redistributions of source code must retain the above copyright 9 # * Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer. 10 # notice, this list of conditions and the following disclaimer.
11 # * Redistributions in binary form must reproduce the above 11 # * Redistributions in binary form must reproduce the above
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 dest_nodes += self.Replicate(target_path + '/' + source[1], source[0]) 110 dest_nodes += self.Replicate(target_path + '/' + source[1], source[0])
111 else: 111 else:
112 dest_nodes += self.Replicate(target_path, source[0]) 112 dest_nodes += self.Replicate(target_path, source[0])
113 #GOOGLE_CHANGE(pss) - END CHANGES 113 #GOOGLE_CHANGE(pss) - END CHANGES
114 return dest_nodes 114 return dest_nodes
115 115
116 116
117 #GOOGLE_CHANGE(pss) - FROM THIS: 117 #GOOGLE_CHANGE(pss) - FROM THIS:
118 # def GetPublished(self, group_name, resource_type): 118 # def GetPublished(self, group_name, resource_type):
119 # """Returns a list of the published resources of the specified type. 119 # """Returns a list of the published resources of the specified type.
120 # 120 #
121 # Args: 121 # Args:
122 # self: Environment in which this function was called. 122 # self: Environment in which this function was called.
123 # group_name: Name of resource group, or a list of names of resource groups. 123 # group_name: Name of resource group, or a list of names of resource groups.
124 # resource_type: Type of resources (string), or a list of resource types. 124 # resource_type: Type of resources (string), or a list of resource types.
125 # 125 #
126 # Returns: 126 # Returns:
127 # A flattened list of the source nodes from calls to Publish() for the 127 # A flattened list of the source nodes from calls to Publish() for the
128 # specified group and resource type. Returns an empty list if there are 128 # specified group and resource type. Returns an empty list if there are
129 # no matching resources. 129 # no matching resources.
130 # """ 130 # """
131 #GOOGLE_CHANGE(pss) - TO THIS: 131 #GOOGLE_CHANGE(pss) - TO THIS:
132 def GetPublishedWithSubdirs(self, group_name, resource_type): 132 def GetPublishedWithSubdirs(self, group_name, resource_type):
133 """Returns a list of the published resources of the specified type. 133 """Returns a list of the published resources of the specified type.
134 134
135 Args: 135 Args:
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 env.Defer(_InitializePublish) 244 env.Defer(_InitializePublish)
245 env.Defer('BuildEnvironmentSConscripts', after=_InitializePublish) 245 env.Defer('BuildEnvironmentSConscripts', after=_InitializePublish)
246 246
247 #GOOGLE_CHANGE(pss) - FROM THIS: 247 #GOOGLE_CHANGE(pss) - FROM THIS:
248 #GOOGLE_CHANGE(pss) - TO THIS: 248 #GOOGLE_CHANGE(pss) - TO THIS:
249 env.AddMethod(GetPublishedWithSubdirs) 249 env.AddMethod(GetPublishedWithSubdirs)
250 #GOOGLE_CHANGE(pss) - END CHANGES 250 #GOOGLE_CHANGE(pss) - END CHANGES
251 env.AddMethod(GetPublished) 251 env.AddMethod(GetPublished)
252 env.AddMethod(Publish) 252 env.AddMethod(Publish)
253 env.AddMethod(ReplicatePublished) 253 env.AddMethod(ReplicatePublished)
OLDNEW
« no previous file with comments | « site_scons/site_tools/naclsdk.py ('k') | site_scons/site_tools/replicate.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698