blob: 22d3fcaa9986adf72f6caebb0e6ce9ebf0e5f274 [file] [log] [blame]
Alexander Hansenedc46342025-01-06 17:01:54 +01001#!/bin/sh
2
3set -eu
4
5json_files=$(cd configurations; find . -iname "*.json" | sort | sed 's|^\./||')
6
7MESON_FILE=configurations/meson.build
8
9SELF=$(basename "$0")
10
11# Generate the Meson file
12{
13 echo "# This file is auto-generated. Do not edit manually."
14 echo "# File content generated with ${SELF}."
15 echo "configs = ["
16 for file in $json_files; do
17 echo " '${file}',"
18 done
19 echo "]"
20} > "$MESON_FILE"