NetBSD/usr.bin/crunch/crunchgen/mkskel.sh

16 lines
217 B
Bash
Raw Normal View History

1994-08-29 18:47:29 +04:00
#! /bin/sh
# 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