repo.or.cz
/
minix3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
<sys/socket.h>: turn off MSG_NOSIGNAL
[minix3.git]
/
tests
/
lib
/
libppath
/
plist_to_c
blob
f471b4e708fb2d10970ae3f435638ebe5509587a
1
#!/bin/sh
2
3
prog
=
$
(
basename
$0
)
4
usage
()
5
{
6
echo
"usage:
${prog}
symbol"
1
>&
2
7
exit
1
8
}
9
10
if
[
$#
-ne
1
];
then
11
usage
12
fi
13
14
sed
's/\(["\]\)/
\\
\1/g'
| \
15
${AWK:-awk}
-v
sym
=
$1
'
16
BEGIN { printf "const char " sym "[] =
\"
"; }
17
{ printf
$0
"
\\
n"; }
18
END { print "
\"
;"; }'
19
20
exit
0