From c0919b0d52648a787fd5da717887f36dcf399cc7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Fri, 18 May 2007 14:07:20 +0200
Subject: [PATCH] Added fallback to trace mode on failure.

Rev: src/post_modules/GTK2/Makefile.in:1.12
---
 src/post_modules/GTK2/Makefile.in | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/post_modules/GTK2/Makefile.in b/src/post_modules/GTK2/Makefile.in
index 9720d021e6..1b949839df 100644
--- a/src/post_modules/GTK2/Makefile.in
+++ b/src/post_modules/GTK2/Makefile.in
@@ -43,8 +43,13 @@ compile0:
 	$(MAKE) all
 
 compile1:
-	$(RUNPIKE) $(SRCDIR)/build_pgtk.pike --source='$(SRCDIR)/source/' \
-	           $(SRCDIR)/output/few.pike
+	if $(RUNPIKE) $(SRCDIR)/build_pgtk.pike --source='$(SRCDIR)/source/' \
+	              $(SRCDIR)/output/few.pike; then :; else \
+	  (echo; echo "Failure. Rerunning with trace."; echo) >&2; \
+	  $(RUNPIKE) -t2 $(SRCDIR)/build_pgtk.pike \
+		     --source='$(SRCDIR)/source/' $(SRCDIR)/output/few.pike; \
+	  exit $$?; \
+	fi
 	@if [ "x@VPATH_KLUDGE@" = "xyes" ]; then \
 	  for f in `cat files_to_compile | sed -e 's/\.o/\.c/g'`; do \
 	    test -f "$$f" || ln -s "$(srcdir)/$$f" "$$f"; \
-- 
GitLab