summaryrefslogtreecommitdiff
path: root/usr.bin/lex/mkskel.sh
blob: 59f1a53808a93cb285d1e7c1d05fd33092516407 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh
#	$OpenBSD: mkskel.sh,v 1.2 1996/06/26 05:35:39 deraadt Exp $


cat <<!
/* File created from flex.skl via mkskel.sh */

#include "flexdef.h"

const char *skel[] = {
!

sed 's/\\/&&/g' $* | sed 's/"/\\"/g' | sed 's/.*/  "&",/'

cat <<!
  0
};
!