James Kuszmaul | c6ea63a | 2023-09-06 20:36:46 -0700 | [diff] [blame] | 1 | genrule( |
| 2 | name = "copy_rsync_wrapper", |
| 3 | srcs = ["@//debian:rsync_wrapper.sh"], |
| 4 | outs = ["rsync_wrapper.sh"], |
| 5 | cmd = "cp $< $@", |
| 6 | ) |
| 7 | |
| 8 | sh_binary( |
Austin Schuh | 71f6fa7 | 2019-08-31 18:23:02 -0700 | [diff] [blame] | 9 | name = "rsync", |
James Kuszmaul | c6ea63a | 2023-09-06 20:36:46 -0700 | [diff] [blame] | 10 | srcs = [ |
| 11 | "rsync_wrapper.sh", |
| 12 | ], |
| 13 | data = [ |
| 14 | "usr/bin/rsync", |
| 15 | ":libs", |
| 16 | "@bazel_tools//tools/bash/runfiles", |
| 17 | ], |
Austin Schuh | 71f6fa7 | 2019-08-31 18:23:02 -0700 | [diff] [blame] | 18 | visibility = ["//visibility:public"], |
| 19 | ) |
James Kuszmaul | c6ea63a | 2023-09-06 20:36:46 -0700 | [diff] [blame] | 20 | |
| 21 | filegroup( |
| 22 | name = "libs", |
| 23 | srcs = glob([ |
| 24 | "usr/lib/x86_64-linux-gnu/**", |
| 25 | ]), |
| 26 | ) |