From da5618b9ba0cb6a31d6426cacd51a32011e48e13 Mon Sep 17 00:00:00 2001 From: Robin Sommer Date: Tue, 10 May 2011 21:27:44 -0700 Subject: [PATCH] Portability fixes for tests on MacOS. --- testing/btest/Scripts/diff-remove-abspath | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 testing/btest/Scripts/diff-remove-abspath diff --git a/testing/btest/Scripts/diff-remove-abspath b/testing/btest/Scripts/diff-remove-abspath new file mode 100755 index 0000000000..361ad3fa6d --- /dev/null +++ b/testing/btest/Scripts/diff-remove-abspath @@ -0,0 +1,5 @@ +#! /usr/bin/env bash +# +# Replace absolute paths with the basename. + +sed 's#/\([^/]\{1,\}/\)\{1,\}\([^/]\{1,\}\)#<...>/\2#g'