minix/commands/lex/mkskel.sh
2010-05-12 16:28:54 +00:00

16 lines
192 B
Bash
Executable file

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