mirror of
https://github.com/vbatts/go-mtree.git
synced 2024-11-15 13:18:45 +00:00
README: markdown lint
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
01744958cd
commit
e1f0f056c7
1 changed files with 7 additions and 12 deletions
|
@ -12,7 +12,6 @@ provided with libarchive ([libarchive-formats(5)][libarchive-formats(5)]).
|
|||
There is also an [mtree port for Linux][archiecobbs/mtree-port] though it is
|
||||
not widely packaged for Linux distributions.
|
||||
|
||||
|
||||
## Format
|
||||
|
||||
The format of hierarchy specification is consistent with the `# mtree v2.0`
|
||||
|
@ -31,7 +30,6 @@ strictly compatible with the BSD `mtree`, use the `-bsd-keywords` flag when
|
|||
creating a manifest. This will make sure that only the keywords supported by
|
||||
BSD `mtree` are used in the program.
|
||||
|
||||
|
||||
### Typical form
|
||||
|
||||
With the standard keywords, plus say `sha256digest`, the hierarchy
|
||||
|
@ -51,7 +49,6 @@ See the directory presently in, and the files present. Along with each
|
|||
path, is provided the keywords and the unique values for each path. Any common
|
||||
keyword and values are established in the `/set` command.
|
||||
|
||||
|
||||
### Extended attributes form
|
||||
|
||||
```mtree
|
||||
|
@ -106,14 +103,12 @@ This way, if you validate a manifest created using a tar file against an
|
|||
actual root directory, there will be no complaints from `go-mtree` so long as the
|
||||
1-second precision time of a file in the root directory is the same.
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
To use the Go programming language library, see [the docs][godoc].
|
||||
|
||||
To use the command line tool, first [build it](#Building), then the following.
|
||||
|
||||
|
||||
### Create a manifest
|
||||
|
||||
This will also include the sha512 digest of the files.
|
||||
|
@ -173,7 +168,6 @@ Available keywords:
|
|||
sha512digest
|
||||
```
|
||||
|
||||
|
||||
## Building
|
||||
|
||||
Either:
|
||||
|
@ -193,18 +187,19 @@ go build ./cmd/gomtree
|
|||
## Testing
|
||||
|
||||
On Linux:
|
||||
|
||||
```bash
|
||||
cd $GOPATH/src/github.com/vbatts/go-mtree
|
||||
make
|
||||
```
|
||||
|
||||
On FreeBSD:
|
||||
|
||||
```bash
|
||||
cd $GOPATH/src/github.com/vbatts/go-mtree
|
||||
gmake
|
||||
```
|
||||
|
||||
|
||||
[mtree(8)]: https://www.freebsd.org/cgi/man.cgi?mtree(8)
|
||||
[libarchive-formats(5)]: https://www.freebsd.org/cgi/man.cgi?query=libarchive-formats&sektion=5&n=1
|
||||
[archiecobbs/mtree-port]: https://github.com/archiecobbs/mtree-port
|
||||
|
|
Loading…
Reference in a new issue