shithub: scc

Download patch

ref: 83925bdbebb1658ac7e26c3dc5181b3ae595d864
parent: 3c1bc3ba7d6a901a60f374d7272cf89f9eacb442
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Apr 7 04:41:54 EDT 2016

[cc2] Fix Makefile

Trap affects only to the current shell, so if the semicolon
was lost then the trap was not affecting to the full rule.

--- a/cc2/Makefile
+++ b/cc2/Makefile
@@ -12,7 +12,7 @@
 main.o: error.h
 
 error.h: cc2.h
-	rm -f $@; trap 'rm -f $$$$.h' EXIT INT QUIT
+	rm -f $@; trap 'rm -f $$$$.h' EXIT INT QUIT ;\
 	awk -f generror cc2.h > $$$$.h && mv $$$$.h $@
 
 cc2: $(OBJS) ../lib/libcc.a
--