<sys/socket.h>: turn off MSG_NOSIGNAL
[minix3.git] / tests / lib / libppath / plist_to_c
blobf471b4e708fb2d10970ae3f435638ebe5509587a
1 #!/bin/sh
3 prog=$(basename $0)
4 usage()
6 echo "usage: ${prog} symbol" 1>&2
7 exit 1
10 if [ $# -ne 1 ]; then
11 usage
14 sed 's/\(["\]\)/\\\1/g' | \
15 ${AWK:-awk} -v sym=$1 '
16 BEGIN { printf "const char " sym "[] = \""; }
17 { printf $0 "\\n"; }
18 END { print "\";"; }'
20 exit 0