blob: 9faa6e9acc96aba9673ad8af5e6453acd65379e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#! /bin/sh
# $OpenBSD: mkskel.sh,v 1.1 2008/08/22 15:18:55 deraadt Exp $
# idea and sed lines taken straight from flex
cat <<!EOF
/* File created via mkskel.sh */
char *crunched_skel[] = {
!EOF
sed 's/\\/&&/g' $* | sed 's/"/\\"/g' | sed 's/.*/ "&",/'
cat <<!EOF
0
};
!EOF
|