]> git.proxmox.com Git - proxmox-backup.git/commitdiff
buildsys: switch from '\s' as a whitespace matcher to `[[:space:]]`
authorStefan Sterz <s.sterz@proxmox.com>
Tue, 6 Jun 2023 07:50:18 +0000 (09:50 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 6 Jun 2023 09:34:22 +0000 (11:34 +0200)
previously the build process was broken for some versions of `awk`
(most notably `mawk`) as they did not understand the shorthand `\s`
notation for matching a whitspace. use the more universal and more
explicit `[[:space:]]` instead.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
Makefile

index 0d1602fdd334e1ab53276458aa26c31b4dd30fd1..92eed8a15d0eeda24aa93f03e438825f6bec470f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,7 @@ RESTORE_BIN := \
 
 SUBCRATES != cargo metadata --no-deps --format-version=1 \
        | jq -r .workspace_members'[]' \
-       | awk '!/^proxmox-backup\s/ { printf "%s ", $$1 }'
+       | awk '!/^proxmox-backup[[:space:]]/ { printf "%s ", $$1 }'
 
 ifeq ($(BUILD_MODE), release)
 CARGO_BUILD_ARGS += --release