svn commit: r485659 - head/devel/tig/files
Tobias Kortkamp
tobik at FreeBSD.org
Fri Nov 23 13:59:09 UTC 2018
Author: tobik
Date: Fri Nov 23 13:59:08 2018
New Revision: 485659
URL: https://svnweb.freebsd.org/changeset/ports/485659
Log:
devel/tig: Fix a GNUism in tools/make-builtin-config.sh
PR: 233423
Reported by: kevans
Added:
head/devel/tig/files/
head/devel/tig/files/patch-tools_make-builtin-config.sh (contents, props changed)
Added: head/devel/tig/files/patch-tools_make-builtin-config.sh
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/tig/files/patch-tools_make-builtin-config.sh Fri Nov 23 13:59:08 2018 (r485659)
@@ -0,0 +1,15 @@
+sed: 1: "s/\s*#.*//": RE error: trailing backslash (\)
+
+cf. PR 229925
+
+--- tools/make-builtin-config.sh.orig 2018-11-23 06:50:40 UTC
++++ tools/make-builtin-config.sh
+@@ -21,7 +21,7 @@ TIGRC="${1:-tigrc}"
+
+ read_tigrc() {
+ if test -z "$NO_BUILTIN_TIGRC"; then
+- sed 's/\s*#.*//' "$TIGRC" | sed 's,\\,\\\\\\\\,g' | sed 's,",\\\\",g' | sed 's/ \+/ /g'
++ sed 's/[[:space:]]*#.*//' "$TIGRC" | sed 's,\\,\\\\\\\\,g' | sed 's,",\\\\",g' | sed 's/ \+/ /g'
+ else
+ echo '#'
+ fi
More information about the svn-ports-all
mailing list