aboutsummaryrefslogtreecommitdiffstats
path: root/tools/meson-apply-m4.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/meson-apply-m4.sh')
-rwxr-xr-xtools/meson-apply-m4.sh21
1 files changed, 0 insertions, 21 deletions
diff --git a/tools/meson-apply-m4.sh b/tools/meson-apply-m4.sh
deleted file mode 100755
index 6c5726a7d5..0000000000
--- a/tools/meson-apply-m4.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/env bash
-# SPDX-License-Identifier: LGPL-2.1-or-later
-set -eu
-
-CONFIG="${1:?Missing path to config.h}"
-TARGET="${2:?Missing target m4 file}"
-
-if [ ! -f "$CONFIG" ]; then
- echo "$CONFIG not found."
- exit 2
-fi
-
-if [ ! -f "$TARGET" ]; then
- echo "$TARGET not found."
- exit 3
-fi
-
-DEFINES=()
-mapfile -t DEFINES < <(awk '$1 == "#define" && $3 == "1" { printf "-D%s\n", $2 }' "$CONFIG")
-
-m4 -P "${DEFINES[@]}" "$TARGET"