From 644ac25ead90f36b6f919a79cfcb2192749af1c6 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Tue, 16 Jul 2024 11:05:21 +0200 Subject: [PATCH] build.sh target list: sort as version numbers before: Targets: centos-10 centos-7 rocky-8 rocky-9 sdist after: Targets: centos-7 centos-10 rocky-8 rocky-9 sdist --- build.sh | 2 +- demo/builder-support/dockerfiles/Dockerfile.target.centos-10 | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 demo/builder-support/dockerfiles/Dockerfile.target.centos-10 diff --git a/build.sh b/build.sh index 673e632..43298f4 100755 --- a/build.sh +++ b/build.sh @@ -110,7 +110,7 @@ usage() { echo " -r URL - Use URL as registry mirror" echo echo "Targets:" - ls -1 $BUILDER_SUPPORT_ROOT/dockerfiles/Dockerfile.target.* | sed 's/.*Dockerfile.target.//' | sed 's/^/ /' + ls -1 $BUILDER_SUPPORT_ROOT/dockerfiles/Dockerfile.target.* | sed 's/.*Dockerfile.target.//' | sed 's/^/ /' | sort -V echo [ -f "$BUILDER_SUPPORT_ROOT/usage.include.txt" ] && cat "$BUILDER_SUPPORT_ROOT/usage.include.txt" diff --git a/demo/builder-support/dockerfiles/Dockerfile.target.centos-10 b/demo/builder-support/dockerfiles/Dockerfile.target.centos-10 new file mode 100644 index 0000000..b9dcdd4 --- /dev/null +++ b/demo/builder-support/dockerfiles/Dockerfile.target.centos-10 @@ -0,0 +1 @@ +# bogus target for sort testing