Commit graph

14 commits

Author SHA1 Message Date
Laurent Cheylus
e50a3a4471
show-utils.sh: fix jq query to get coreutils deps
In jq query, the correct regex to select .id is ".*coreutils[ |@|#]\\d+\\.\\d+\\.\\d+"

With cargo <= v1.76, id = "coreutils 0.0.26 (path+file://<coreutils local directory>)"

With cargo >= v1.77,
- if local path == '<parent directory>/coreutils/', id = "path+file://<parent directory>/coreutils#0.0.26"
- if local path != '<parent directory>/coreutils/', id = "path+file://<coreutils local directory>#coreutils@0.0.26"

Fix uutils/coreutils#6479

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-06-19 17:35:45 +02:00
Laurent Cheylus
3b96ff1d10 show-utils.sh: fix jq query to get coreutils deps
In jq query, the correct regex to select .id is ".*coreutils[ |@]\\d+\\.\\d+\\.\\d+"

- with cargo v1.76, id = "coreutils 0.0.26 (path+file://<coreutils local directory>)"
- with cargo v1.77, id = "path+file://<coreutils local directory>#coreutils@0.0.26"

Fix uutils/coreutils#6242

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-05-04 18:20:03 +02:00
Terts Diepraam
3b80d75ee7 show-utils.sh: fix jq query 2024-03-24 10:57:31 +01:00
Laurent Cheylus
d450d5a463
show-utils.sh: modify script to be compatible with BSD OS
- Use /usr/bin/env bash instead of /bin/sh to define OSTYPE
  - Use GNU realpath on BSD OS (FreeBSD and OpenBSD)

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-01-02 22:05:02 +01:00
boxdot
e88183174b
relpath: remove
Closes #5236
2023-10-04 16:13:06 +02:00
Miles Liu
04f1b31889
util/show-utils: fix script not working as intended 2023-03-21 09:25:17 +08:00
Roy Ivy III
fdd11e0637 maint/polish ~ (util) shfmt -w -i=4 -ci 2022-02-12 15:26:59 -06:00
Linux User
d762bebc1c update shell scripts according to shellcheck recommendations and minor cleanup 2022-02-01 06:55:11 +00:00
Roy Ivy III
f4d94ed8ff build/dev ~ change show-utils; allow invokation from directories other than repo main 2020-05-30 22:14:46 -05:00
Roy Ivy III
f7ac89dc82 dev ~ update show-utils for 'coreutils' name change 2020-05-29 22:59:47 -05:00
Roy Ivy III
c6ca0437c0 maint/build ~ update show-utils utilities from transitional to more-user friendly outputs 2020-05-29 22:59:46 -05:00
Roy Ivy III
68bea8d81d maint/build ~ update show-utils for sub-crate independence transition 2020-05-29 22:59:40 -05:00
Roy Ivy III
ce6b425036 maint/build ~ enable executable permissions for util shell scripts 2020-04-14 13:52:08 -05:00
Roy Ivy III
ca7d565eb0 maint/build ~ add dev helper scripts to derive available utils for feature set 2020-04-11 18:50:09 -05:00