1997-08-03 01:30:05 +04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2009-04-15 02:03:07 +04:00
|
|
|
# $NetBSD: mkskel.sh,v 1.3 2009/04/14 22:03:07 lukem Exp $
|
1997-08-03 01:30:05 +04:00
|
|
|
|
1994-08-29 18:47:29 +04:00
|
|
|
# idea and sed lines taken straight from flex
|
|
|
|
|
|
|
|
cat <<!EOF
|
|
|
|
/* File created via mkskel.sh */
|
|
|
|
|
2009-04-15 02:03:07 +04:00
|
|
|
const char *crunched_skel[] = {
|
1994-08-29 18:47:29 +04:00
|
|
|
!EOF
|
|
|
|
|
|
|
|
sed 's/\\/&&/g' $* | sed 's/"/\\"/g' | sed 's/.*/ "&",/'
|
|
|
|
|
|
|
|
cat <<!EOF
|
|
|
|
0
|
|
|
|
};
|
|
|
|
!EOF
|