openbsd-ports/devel/happy/patches/patch-Makefile
dons 94f931f2da Let happy build on amd64.
Update maintainer and add RCS tags.

ok pvalchev@ avsm@
2004-04-23 03:00:07 +00:00

28 lines
940 B
Plaintext

$OpenBSD: patch-Makefile,v 1.2 2004/04/23 03:00:07 dons Exp $
Add a nice regress target
--- Makefile.orig Wed Jun 19 23:48:31 2002
+++ Makefile Wed Jul 23 12:45:05 2003
@@ -368,3 +368,21 @@
# -----------------------------------------------------------------------------
+TEST_RESULT=actual.result
+
+check::
+ @( cd happy/tests/ ; ${MAKE} | tee ../../${TEST_RESULT}.raw )
+ @( sed '1d;$$d' ${TEST_RESULT}.raw > ${TEST_RESULT} )
+ @(if cmp -s expected.result ${TEST_RESULT} ; then \
+ echo ;\
+ echo "All is good!" ; \
+ echo ;\
+ else \
+ echo ;\
+ echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@";\
+ echo "Unexpected regress results!" ;\
+ echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@";\
+ echo ;\
+ echo "here is a diff:" ;\
+ diff -u expected.result ${TEST_RESULT} ;\
+ fi ; exit 0 )