svn commit: r304035 - projects/netbsd-tests-update-12/bin/cat/tests

Garrett Cooper ngie at FreeBSD.org
Sat Aug 13 02:53:03 UTC 2016


Author: ngie
Date: Sat Aug 13 02:53:02 2016
New Revision: 304035
URL: https://svnweb.freebsd.org/changeset/base/304035

Log:
  Hack around output differences between FreeBSD and other BSDs
  with cat(1)
  
  cat -be on FreeBSD doesn't align the $ with the start of the line
  like NetBSD, et al's cat -be does
  
  PR:		210607
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  projects/netbsd-tests-update-12/bin/cat/tests/Makefile

Modified: projects/netbsd-tests-update-12/bin/cat/tests/Makefile
==============================================================================
--- projects/netbsd-tests-update-12/bin/cat/tests/Makefile	Sat Aug 13 02:05:06 2016	(r304034)
+++ projects/netbsd-tests-update-12/bin/cat/tests/Makefile	Sat Aug 13 02:53:02 2016	(r304035)
@@ -11,4 +11,10 @@ ${PACKAGE}FILES+=		d_se_output.out
 
 .include <netbsd-tests.test.mk>
 
+d_align.out: ${TESTSRC}/d_align.out
+	sed -E -e 's,^[[:space:]]{7}\$$$$,\$$,' < ${.ALLSRC} > ${.TARGET}.tmp
+	mv ${.TARGET}.tmp ${.TARGET}
+
+CLEANFILES+=			d_align.out d_align.out.tmp
+
 .include <bsd.test.mk>


More information about the svn-src-projects mailing list