repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
usr.bin
/
crunch
/
crunchgen
/
mkskel.sh
blob
18a5855c85762e9cc33f47f9400c17f02d2bcc26
1
#!/bin/sh
2
3
# $NetBSD: mkskel.sh,v 1.2 1997/08/02 21:30:13 perry Exp $
4
5
# idea and sed lines taken straight from flex
6
7
cat
<<!
EOF
8
/*
File created via mkskel.sh
*/
9
10
const char
*
crunched_skel
[] = {
11
!
EOF
12
13
sed
's/
\\
/&&/g'
$
*
|
sed
's/"/
\\
"/g'
|
sed
's/.*/ "&",/'
14
15
cat
<<!
EOF
16
0
17
};
18
!
EOF