1#!/bin/sh
2set -e
3
4: ${TOOL_SED:=sed}
5CONF=${1:-dhcpcd-definitions.conf}
6
7cat dhcpcd-embedded.c.in
8$TOOL_SED \
9	-e 's/#.*$//' \
10	-e '/^$/d' \
11	-e 's/^/"/g' \
12	-e 's/$/\",/g' \
13	-e 's/ [ ]*/ /g' \
14	-e 's/	[	]*/ /g' \
15	$CONF
16printf "%s\n%s\n" "NULL" "};"
17