summaryrefslogtreecommitdiff
path: root/tools/make-cmake-config
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-02-28 15:36:45 -0500
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-02-28 15:36:45 -0500
commit612fd7b29cde5382fda720d76347212442ea4eec (patch)
treecbaccd60d7eb64ab9aca4c217e67be5afeba05b5 /tools/make-cmake-config
parent8edb6adb91191ef329b6044ea298d74b11c7835d (diff)
fix: awk -> gawk & verify defconfig exists
Transitioned from awk to gawk for the time being to use gensub cross platform. Also, now verify that the defconfig specified exists and if it does not, then an error message is printed.
Diffstat (limited to 'tools/make-cmake-config')
-rwxr-xr-xtools/make-cmake-config2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/make-cmake-config b/tools/make-cmake-config
index 6fa7ba4..0444767 100755
--- a/tools/make-cmake-config
+++ b/tools/make-cmake-config
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
-cat $1 | awk '{print gensub(/(.*)=(.*)/, "set(\\1 \\2)", 1)}' > "$(dirname $1)/$(basename -s .make $1).cmake"
+cat $1 | gawk '{print gensub(/(.*)=(.*)/, "set(\\1 \\2)", 1)}' > "$(dirname $1)/$(basename -s .make $1).cmake"