debcargo-conf/dev/list-binpkgs.sh
Ian Jackson 87c0930c70 Make scripts all be #!/bin/bash
sh is rather inconvenient.  I am about to introduce a bashism in
vars.sh.frag and various others.
2021-09-03 11:47:40 +01:00

8 lines
217 B
Bash
Executable File

#!/bin/bash
# List all packages that produce rust binaries, from this repo.
grep -l "\[packages.bin\]" src/*/debian/debcargo.toml \
| cut -d/ -f2 \
| sed -e 's/^/rust-/g' \
| tr '\n' ',' \
| sed -e 's/,$/\n/'