From de8379588d9986b790819cf14db1403cd4546f59 Mon Sep 17 00:00:00 2001 From: Yuxuan 'fishy' Wang Date: Fri, 29 Aug 2014 10:19:22 -0700 Subject: [PATCH] Rename doc.css to doc.css.in. As we'll need to copy it to buck-out/gen anyway, this will save some future trouble. Change-Id: I91cfadd15d6642a8dfaf73b6243411e9492781ca --- Documentation/BUCK | 9 ++++++++- Documentation/asciidoc.defs | 2 +- Documentation/{doc.css => doc.css.in} | 0 3 files changed, 9 insertions(+), 2 deletions(-) rename Documentation/{doc.css => doc.css.in} (100%) diff --git a/Documentation/BUCK b/Documentation/BUCK index f070d7e3b5..5ea58fdc13 100644 --- a/Documentation/BUCK +++ b/Documentation/BUCK @@ -19,7 +19,7 @@ genrule( srcs = glob([ 'images/*.jpg', 'images/*.png', - ]) + ['doc.css'], + ]) + [':doc.css'], out = 'html.zip', visibility = ['PUBLIC'], ) @@ -39,6 +39,13 @@ genrule( out = 'licenses.txt', ) +genrule( + name = 'doc.css', + srcs = ['doc.css.in'], + cmd = 'cp $SRCS $OUT', + out = 'doc.css', +) + python_binary( name = 'gen_licenses', main = 'gen_licenses.py', diff --git a/Documentation/asciidoc.defs b/Documentation/asciidoc.defs index 4d00c50003..6581dd79ff 100644 --- a/Documentation/asciidoc.defs +++ b/Documentation/asciidoc.defs @@ -34,7 +34,7 @@ def genasciidoc( for attribute in attributes: asciidoc.extend(['-a', attribute]) asciidoc.append('$SRCS') - newsrcs = ["doc.css"] + newsrcs = [":doc.css"] for src in srcs: fn = src # We have two cases: regular source files and generated files. diff --git a/Documentation/doc.css b/Documentation/doc.css.in similarity index 100% rename from Documentation/doc.css rename to Documentation/doc.css.in