openbsd-ports/devel/alex/patches/patch-Makefile
dons 6ff71bd09f Let alex build on amd64.
Change my maintainer addr to dons@openbsd.org,
and add RCS tags while I'm here.

	ok avsm@ pvalchev@
2004-04-23 02:17:49 +00:00

30 lines
745 B
Plaintext

$OpenBSD: patch-Makefile,v 1.2 2004/04/23 02:17:50 dons Exp $
Provide a useful regress target.
--- Makefile.orig Sat Jul 26 00:39:17 2003
+++ Makefile Thu Aug 14 13:07:07 2003
@@ -420,3 +420,23 @@
# -----------------------------------------------------------------------------
+EXP=alex.expected
+OUT=alex.actual
+
+check::
+ @( cd alex/tests/ ; ${MAKE} 2>&1 | tee ../../${OUT}.raw )
+ @sed '1d;$$d' ${OUT}.raw > ${OUT}
+ @(if cmp -s ${EXP} ${OUT} ; then \
+ echo ;\
+ echo "All is good!" ; \
+ echo ;\
+ else \
+ echo ;\
+ echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@";\
+ echo "Unexpected regress results!" ;\
+ echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@";\
+ echo ;\
+ echo "here is a diff:" ;\
+ diff -u ${EXP} ${OUT} ;\
+ fi ; exit 0 )
+