def GetSpecPostbuildCommands(spec, quiet=False):
 postbuilds = []
 for postbuild in spec.get('postbuilds', []):
  if (not quiet):
   postbuilds.append(('echo POSTBUILD\\(%s\\) %s' % (spec['target_name'], postbuild['postbuild_name'])))
  postbuilds.append(gyp.common.EncodePOSIXShellList(postbuild['action']))
 return postbuilds

def GetSpecPostbuildCommands ( spec , quiet = False ) : postbuilds = [ ] for postbuild in spec . get ( 'postbuilds' , [ ] ) : if ( not quiet ) : postbuilds . append ( ( 'echo POSTBUILD\\(%s\\) %s' % ( spec [ 'target_name' ] , postbuild [ 'postbuild_name' ] ) ) ) postbuilds . append ( gyp . common . EncodePOSIXShellList ( postbuild [ 'action' ] ) ) return postbuilds
returns the list of postbuilds explicitly defined on |spec| .