blob: 4c7d2a10d1b373fb207f548b63d8fc2a759630dd [file]
genrule(
name = "foo",
srcs = ["//bar"],
outs = ["foo.sh"],
cmd = "echo '#!/bin/sh\ncat $(execpath //bar)' > '$@'",
executable = True,
visibility = ["//visibility:public"],
)