Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/buildtools/wafsamba/pkgconfig.py

    r740 r988  
    11# handle substitution of variables in pc files
    22
    3 import Build, sys, Logs
    4 from samba_utils import *
     3import os, re, sys
     4import Build, Logs
     5from samba_utils import SUBST_VARS_RECURSIVE, TO_LIST
    56
    67def subst_at_vars(task):
    78    '''substiture @VAR@ style variables in a file'''
    8     src = task.inputs[0].srcpath(task.env)
    9     tgt = task.outputs[0].bldpath(task.env)
    109
    11     f = open(src, 'r')
    12     s = f.read()
    13     f.close()
     10    s = task.inputs[0].read()
    1411    # split on the vars
    1512    a = re.split('(@\w+@)', s)
     
    3835        out.append(v)
    3936    contents = ''.join(out)
    40     f = open(tgt, 'w')
    41     s = f.write(contents)
    42     f.close()
     37    task.outputs[0].write(contents)
    4338    return 0
    4439
     
    5449                                source=f+'.in',
    5550                                target=f)
     51        bld.add_manual_dependency(bld.path.find_or_declare(f), bld.env['PREFIX'])
    5652        t.vars = []
    5753        if t.env.RPATH_ON_INSTALL:
Note: See TracChangeset for help on using the changeset viewer.