In asciidoc.defs cut the '-s' out of 'passed_src'
Make it a bit easy to read. Change-Id: Ica9db6c8b1db016bdd997f45005dcbd0d326d426
This commit is contained in:
parent
9d1bd96c3f
commit
d8db1d69e9
@ -41,17 +41,17 @@ def genasciidoc(
|
||||
# 1. regular files: cmd = '-s foo', srcs = ['foo']
|
||||
# 2. generated files: cmd = '-s $(location :foo)', srcs = []
|
||||
srcs = [src]
|
||||
passed_src = ' -s %s' % fn
|
||||
passed_src = fn
|
||||
if fn.startswith(':') :
|
||||
fn = src[1:]
|
||||
srcs = []
|
||||
passed_src = ' -s $(location :%s)' % fn
|
||||
passed_src = '$(location :%s)' % fn
|
||||
ex = fn + EXPN
|
||||
|
||||
genrule(
|
||||
name = ex,
|
||||
cmd = '$(exe :replace_macros) --suffix=' + EXPN +
|
||||
passed_src +
|
||||
' -s ' + passed_src +
|
||||
' -o $OUT',
|
||||
srcs = srcs,
|
||||
out = ex,
|
||||
|
Loading…
Reference in New Issue
Block a user