xref: /freebsd/usr.sbin/crunch/crunchgen/mkskel.sh (revision 1669d8afc64812c8d2d1d147ae1fd42ff441e1b1)
1#! /bin/sh
2# idea and sed lines taken straight from flex
3
4cat <<!EOF
5/* File created via mkskel.sh */
6
7char *crunched_skel[] = {
8!EOF
9
10sed 's/\\/&&/g' $* | sed 's/"/\\"/g' | sed 's/.*/  "&",/'
11
12cat <<!EOF
13  0
14};
15!EOF
16