mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-27 20:14:15 +08:00
26c177737e
linking fails.
17 lines
252 B
Bash
Executable File
17 lines
252 B
Bash
Executable File
#!/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" "};"
|