freebsd-ports/sysutils/rust-coreutils/files/symlink-install-helper.sh.in
Daniel Engberg 9bc2075ac3 sysutils/rust-coreutils: Provide more utils and reduce install size
- Use cargo to follow framework options more closely, this also allows
  including more utilities
- Use multi binary as it substantially reduces install size and allows
  better overall optimization

This drops shell completions but it shouldn't be much work enabling
again by adapting the helper script and using cargo

PR:		269832
Reviewed by:	pkubaj (maintainer)
2023-03-06 23:21:23 +01:00

2 lines
306 B
Bash

#!/bin/sh
for i in $(%%GREP%% -o '".*"' %%CARGO_TARGET_DIR%%/%%CARGO_BUILD_TARGET%%/*/build/coreutils-*/out/uutils_map.rs | %%SED%% 's/"//g'| %%SED%% 's/$/ /g'| %%TR%% -d '\n'| %%TR%% -d '\r'); do %%RLN%% %%STAGEDIR%%%%PREFIX%%/bin/%%BINPREFIX%%coreutils %%STAGEDIR%%%%PREFIX%%/bin/%%BINPREFIX%%${i}; done