vendredi 1 mars 2019

Moving a group of files to a bin folder

I'm trying a move a folder along with its contents to bin folder. But it is not happening. I tried the following.

filegroup(
    name = "images",
    srcs = glob(["src/assets/**/*.*"]),
)

genrule(
    name = "copy_ui_images",
    srcs =[":images"],
    outs = ["assets"],
    output_to_bindir = 1,
    cmd = "cp $(SRCS) $(@D)" 
)

The idea is to copy the folder "assets" along with its contents outside "src" folder. Kindly let me know if i'm missing anything

Aucun commentaire:

Enregistrer un commentaire