Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/sets Convert mtree spec path characters with sed(1) ...
details: https://anonhg.NetBSD.org/src/rev/c575e8b67c87
branches: trunk
changeset: 329597:c575e8b67c87
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Fri May 30 08:37:35 2014 +0000
description:
Convert mtree spec path characters with sed(1) to avoid tool'ifying vis(1).
diffstat:
distrib/sets/regpkg | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 2784fd19a616 -r c575e8b67c87 distrib/sets/regpkg
--- a/distrib/sets/regpkg Fri May 30 08:36:28 2014 +0000
+++ b/distrib/sets/regpkg Fri May 30 08:37:35 2014 +0000
@@ -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 @@
# "@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 @@
# 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
Home |
Main Index |
Thread Index |
Old Index