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

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

#include "flexdef.h"

char *skel[] = {
!

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

cat <<!
  0
};
!
OpenPOWER on IntegriCloud