Advertisement
Guest User

Untitled

a guest
May 19th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. $ make clean all
  2. rm -f y.tab.c y.tab.h lex.yy.c thrash README help.c parse.o \
  3. main.o parse.o scan.o exec.o help.o
  4. cc -c main.c -o main.o -DFLEX_LEX
  5. yacc -d parse.y
  6. cc -c -DFLEX_LEX y.tab.c -o parse.o
  7. lex scan.l
  8. cc -c -DFLEX_LEX lex.yy.c -o scan.o
  9. cc -c exec.c -o exec.o -DFLEX_LEX
  10. echo '#include "version.h"' >help.c
  11. echo 'char *help=' >>help.c
  12. QNM='s/"/\\"/g;s,\$\([a-zA-Z][0-9a-zA-Z]*\)," \1 ",g;';\
  13. sed "$QNM"'s,.*,"&\\n",' help.tf >> help.c
  14. echo ' ;' >>help.c
  15. cc -c help.c -o help.o -DFLEX_LEX
  16. cc -DFLEX_LEX main.o parse.o scan.o exec.o help.o -o thrash
  17. sed '/^.GF/d;/^.TH/{s,...,***,;s,$, ***,}' doc/thrash/main > README
  18. rm help.c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement