Module Name: src Committed By: uebayasi Date: Fri May 30 08:37:35 UTC 2014
Modified Files: src/distrib/sets: regpkg Log Message: Convert mtree spec path characters with sed(1) to avoid tool'ifying vis(1). To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/distrib/sets/regpkg Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/distrib/sets/regpkg diff -u src/distrib/sets/regpkg:1.21 src/distrib/sets/regpkg:1.22 --- src/distrib/sets/regpkg:1.21 Sat May 24 13:27:13 2014 +++ src/distrib/sets/regpkg Fri May 30 08:37:35 2014 @@ -1,6 +1,6 @@ #! /bin/sh # -# $NetBSD: regpkg,v 1.21 2014/05/24 13:27:13 uebayasi Exp $ +# $NetBSD: regpkg,v 1.22 2014/05/30 08:37:35 uebayasi Exp $ # # Copyright (c) 2003,2009 The NetBSD Foundation, Inc. # All rights reserved. @@ -628,7 +628,7 @@ EOF # "@name" line and a lot of "@comment MD5:" lines. # { - rcsid='$NetBSD: regpkg,v 1.21 2014/05/24 13:27:13 uebayasi Exp $' + rcsid='$NetBSD: regpkg,v 1.22 2014/05/30 08:37:35 uebayasi Exp $' utcdate="$(${ENV_CMD} TZ=UTC LOCALE=C \ ${DATE} '+%Y-%m-%d %H:%M')" user="${USER:-root}" @@ -807,7 +807,7 @@ create_syspkg_tgz() # Escape some characters to match the new mtree(8) format. # C.f. usr.sbin/mtree/spec.c:vispath() # XXX escape only '[' for now - vis -o -e '[' \ + ${SED} -e 's,\[,\\133,g' \ >"${spec1}" # If metalog was specified, attributes from metalog override