Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 13 lines (8 sloc) 282 Bytes
#!/bin/sh
set -e
cat libf.h
srcs="error.h list.h dict.h 8cc.h cpp.c debug.c dict.c error.c gen.c lex.c list.c main.c parse.c string.c"
for c in $srcs; do
ruby -p0e '$_.sub!(%q(#include "keyword.h"), File.read("8cc/keyword.h"))' \
< 8cc/$c | grep -v '#include'
done