NetBSD/usr.bin/lex/mkskel.sh

20 lines
255 B
Bash
Raw Normal View History

1993-12-02 22:17:24 +03:00
#! /bin/sh
1998-01-09 11:03:16 +03:00
#
# $NetBSD: mkskel.sh,v 1.3 1998/01/09 08:05:44 perry Exp $
#
1993-12-02 22:17:24 +03:00
cat <<!
1995-05-05 09:35:08 +04:00
/* File created from flex.skl via mkskel.sh */
1993-12-02 22:17:24 +03:00
#include "flexdef.h"
1995-05-05 09:35:08 +04:00
const char *skel[] = {
1993-12-02 22:17:24 +03:00
!
sed 's/\\/&&/g' $* | sed 's/"/\\"/g' | sed 's/.*/ "&",/'
cat <<!
0
};
!