/[ascend]/trunk/SConstruct
ViewVC logotype

Diff of /trunk/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 438 by johnpye, Tue Apr 4 11:34:34 2006 UTC revision 439 by johnpye, Tue Apr 4 11:42:58 2006 UTC
# Line 1  Line 1 
1  import os, commands, platform, distutils.sysconfig, os.path  import os, commands, platform, distutils.sysconfig, os.path
2    
3    version = "0.9.6rc0"
4    
5  #------------------------------------------------------  #------------------------------------------------------
6  # OPTIONS  # OPTIONS
7  #  #
# Line 212  subst_dict = { Line 214  subst_dict = {
214      , '@INSTALL_DATA@':env['INSTALL_DATA']      , '@INSTALL_DATA@':env['INSTALL_DATA']
215      , '@INSTALL_BIN@':env['INSTALL_BIN']      , '@INSTALL_BIN@':env['INSTALL_BIN']
216      , '@INSTALL_INCLUDE@':env['INSTALL_INCLUDE']      , '@INSTALL_INCLUDE@':env['INSTALL_INCLUDE']
217        , '@VERSION@':version
218  }  }
219    
220  if env['WITH_LOCAL_HELP']:  if env['WITH_LOCAL_HELP']:
# Line 639  def TOOL_SUBST(env): Line 642  def TOOL_SUBST(env):
642  TOOL_SUBST(env)  TOOL_SUBST(env)
643    
644  #------------------------------------------------------  #------------------------------------------------------
645     # Recipe for 'CHMOD' ACTION    
646        
647    import SCons    
648    from SCons.Script.SConscript import SConsEnvironment    
649    SConsEnvironment.Chmod = SCons.Action.ActionFactory(os.chmod,    
650        lambda dest, mode: 'Chmod("%s", 0%o)' % (dest, mode))    
651        
652    def InstallPerm(env, dest, files, perm):    
653        obj = env.Install(dest, files)  
654        for i in obj:    
655            env.AddPostAction(i, env.Chmod(str(i), perm))    
656        
657    SConsEnvironment.InstallPerm = InstallPerm  
658        
659    # define wrappers    
660    SConsEnvironment.InstallProgram = lambda env, dest, files: InstallPerm(env, dest, files, 0755)  
661    SConsEnvironment.InstallHeader = lambda env, dest, files: InstallPerm(env, dest, files, 0644)    
662        
663    #------------------------------------------------------
664  # SUBDIRECTORIES....  # SUBDIRECTORIES....
665    
666    
# Line 697  env.Alias('install',install_dirs) Line 719  env.Alias('install',install_dirs)
719  #------------------------------------------------------  #------------------------------------------------------
720  # CREATE the SPEC file for generation of RPM packages  # CREATE the SPEC file for generation of RPM packages
721    
722  env.SubsInFile('ascend.spec.in')  env.SubstInFile('ascend.spec.in')

Legend:
Removed from v.438  
changed lines
  Added in v.439

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22