Changeset 2767

Show
Ignore:
Timestamp:
02/20/18 05:13:22 (4 months ago)
Author:
jwoithe
Message:

SConstruct: allow for the absence of svnversion during build.

Contrary to earlier assumptions, check_output() does not deal gracefully
with the absence of the target binary. Trap exceptions raised by
check_output() when calling svnversion so FFADO can still be built on
systems where subversion is not installed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/SConstruct

    r2765 r2767  
    854854    print("Doing an optimized build...") 
    855855 
    856 env['REVISION'] = check_output(('svnversion', '.',)).rstrip() 
     856try: 
     857    env['REVISION'] = check_output(('svnversion', '.',)).rstrip() 
     858except: 
     859    env['REVISION'] = '' 
     860 
    857861# This may be as simple as '89' or as complex as '4123:4184M'. 
    858862# We'll just use the last bit.