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']
|
# 1. regular files: cmd = '-s foo', srcs = ['foo']
|
||||||
# 2. generated files: cmd = '-s $(location :foo)', srcs = []
|
# 2. generated files: cmd = '-s $(location :foo)', srcs = []
|
||||||
srcs = [src]
|
srcs = [src]
|
||||||
passed_src = ' -s %s' % fn
|
passed_src = fn
|
||||||
if fn.startswith(':') :
|
if fn.startswith(':') :
|
||||||
fn = src[1:]
|
fn = src[1:]
|
||||||
srcs = []
|
srcs = []
|
||||||
passed_src = ' -s $(location :%s)' % fn
|
passed_src = '$(location :%s)' % fn
|
||||||
ex = fn + EXPN
|
ex = fn + EXPN
|
||||||
|
|
||||||
genrule(
|
genrule(
|
||||||
name = ex,
|
name = ex,
|
||||||
cmd = '$(exe :replace_macros) --suffix=' + EXPN +
|
cmd = '$(exe :replace_macros) --suffix=' + EXPN +
|
||||||
passed_src +
|
' -s ' + passed_src +
|
||||||
' -o $OUT',
|
' -o $OUT',
|
||||||
srcs = srcs,
|
srcs = srcs,
|
||||||
out = ex,
|
out = ex,
|
||||||
|
Loading…
Reference in New Issue
Block a user