blob: 5bd7b6f6def09318b5d39c393ed087d3cf2a898c [file] [log] [blame]
#!/bin/sh
set -e
: ${TOOL_SED:=sed}
CONF=${1:-dhcpcd-definitions.conf}
cat dhcpcd-embedded.c.in
$TOOL_SED \
-e 's/#.*$//' \
-e '/^$/d' \
-e 's/^/"/g' \
-e 's/$/\",/g' \
-e 's/ [ ]*/ /g' \
-e 's/ [ ]*/ /g' \
$CONF
printf "%s\n%s\n" "NULL" "};"