Changeset 1588cf1 in rtems-libbsd


Ignore:
Timestamp:
May 2, 2018, 12:59:48 PM (13 months ago)
Author:
Christian Mauderer <christian.mauderer@…>
Branches:
b5f8d4831d66364b7391e3660560cb9bbecada2e, 31b5c87357cee83d6a3419c5d801a9bf16912714
Children:
93f1904
Parents:
821976e
git-author:
Christian Mauderer <christian.mauderer@…> (05/02/18 12:59:48)
git-committer:
Christian Mauderer <christian.mauderer@…> (05/03/18 05:09:46)
Message:

waf: Fix source code generators.

There have been some bugs with the strings left from the transition to
directly building from libbsd.py.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waf_libbsd.py

    r821976e r1588cf1  
    291291                rpcname = rpcgen['files']['all']['default'][0][:-2]
    292292                bld(target = rpcname + '.h',
    293                     source = y + '.x',
     293                    source = rpcname + '.x',
    294294                    rule = host_shell + '${RPCGEN} -h -o ${TGT} ${SRC}')
    295295
     
    301301                routekw = self.data['RouteKeywords']
    302302                rkwname = routekw['files']['all']['default'][0]
    303                 rkw_rule = host_shell + 'cat ${SRC} | ' + \
    304                            'awk \'BEGIN { r = 0 } { if (NF == 1) ' + \
    305                            'printf \\"#define\\\\tK_%%s\\\\t%%d\\\\n\\\\t{\\\\\\"%%s\\\\\\", K_%%s},\\\\n\\", ' + \
    306                            'toupper($1), ++r, $1, toupper($1)}\' > ${TGT}'
     303                rkw_rule = host_shell + "cat ${SRC} | " + \
     304                           "awk 'BEGIN { r = 0 } { if (NF == 1) " + \
     305                           "printf \"#define\\tK_%%s\\t%%d\\n\\t{\\\"%%s\\\", K_%%s},\\n\", " + \
     306                           "toupper($1), ++r, $1, toupper($1)}' > ${TGT}"
    307307                bld(target = rkwname + '.h',
    308308                    source = rkwname,
     
    325325                    lexIncludes = []
    326326                lex_rule = host_shell + '${LEX} -P ' + lex['sym'] + ' -t ${SRC} | ' + \
    327                            'sed -e \'/YY_BUF_SIZE/s/16384/1024/\' > ${TGT}")'
     327                           'sed -e \'/YY_BUF_SIZE/s/16384/1024/\' > ${TGT}'
    328328                if bld.env.AUTO_REGEN:
    329329                    bld(target = lex['file'][:-2]+ '.c',
Note: See TracChangeset for help on using the changeset viewer.