repo.or.cz
/
dragonfly.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
dhcpcd: Add READMEs
[dragonfly.git]
/
contrib
/
dhcpcd
/
src
/
genembedc
blob
27b585399453b4fc2153f056cd82e2bd1344d531
1
#!/bin/sh
2
set -e
3
4
:
${TOOL_CAT:=cat}
5
:
${TOOL_SED:=sed}
6
CONF
=
${1:-dhcpcd-definitions.conf}
7
C
=
${2:-dhcpcd-embedded.c.in}
8
9
$TOOL_CAT $C
10
$TOOL_SED
\
11
-e
's/#.*$//'
\
12
-e
'/^$/d'
\
13
-e
's/^/"/g'
\
14
-e
's/$/
\"
,/g'
\
15
-e
's/ [ ]*/ /g'
\
16
-e
's/ [ ]*/ /g'
\
17
$CONF
18
printf
"%s
\n
%s
\n
"
"NULL"
"};"