aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/lex/mkskel.sh
blob: a03a11aba061a35ffbc07f6e8b0a8f07bafdb48b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/sh

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
};
!