Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Dec 2023 06:24:43 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0a41a6681dad - main - mtree: Update mtree flags in README file
Message-ID:  <202312280624.3BS6OhBc079597@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=0a41a6681dade4d22760e077db029cb5209a0917

commit 0a41a6681dade4d22760e077db029cb5209a0917
Author:     Jose Luis Duran <jlduran@gmail.com>
AuthorDate: 2023-12-28 05:26:23 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-12-28 05:26:26 +0000

    mtree: Update mtree flags in README file
    
    - Add -b (suppress blank lines before directories).
    - The equivalent of `-i` in fmtree is `-j` in mtree (nmtree) (indent the
      output 4 spaces).
    - Add `-F freebsd9` compatibility flavor (print the closing `..` at the
      end).
    
    Reviewed by: imp
    Pull Request: https://github.com/freebsd/freebsd-src/pull/912
---
 etc/mtree/README | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/etc/mtree/README b/etc/mtree/README
index bd813057b5bd..fe57283dc316 100644
--- a/etc/mtree/README
+++ b/etc/mtree/README
@@ -23,8 +23,8 @@ and keep them in good working order.
 
             mkdir /tmp/MTREE
             mtree -deU -f BSD.X.dist -p /tmp/MTREE
-            mtree -cdin -k uname,gname,mode -p /tmp/MTREE | \
-		sed -e 's/ *$//' >BSD.X.new
+            mtree -bcdjn -F freebsd9 -k uname,gname,mode -p /tmp/MTREE | \
+                sed -e 's/ *$//' >BSD.X.new
             diff -u BSD.X.dist BSD.X.new
             rm -r /tmp/MTREE
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202312280624.3BS6OhBc079597>