mirror of
https://github.com/vbatts/go-mtree.git
synced 2025-04-10 00: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
|
There is also an [mtree port for Linux][archiecobbs/mtree-port] though it is
|
||||||
not widely packaged for Linux distributions.
|
not widely packaged for Linux distributions.
|
||||||
|
|
||||||
|
|
||||||
## Format
|
## Format
|
||||||
|
|
||||||
The format of hierarchy specification is consistent with the `# mtree v2.0`
|
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
|
creating a manifest. This will make sure that only the keywords supported by
|
||||||
BSD `mtree` are used in the program.
|
BSD `mtree` are used in the program.
|
||||||
|
|
||||||
|
|
||||||
### Typical form
|
### Typical form
|
||||||
|
|
||||||
With the standard keywords, plus say `sha256digest`, the hierarchy
|
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
|
path, is provided the keywords and the unique values for each path. Any common
|
||||||
keyword and values are established in the `/set` command.
|
keyword and values are established in the `/set` command.
|
||||||
|
|
||||||
|
|
||||||
### Extended attributes form
|
### Extended attributes form
|
||||||
|
|
||||||
```mtree
|
```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
|
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.
|
1-second precision time of a file in the root directory is the same.
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
To use the Go programming language library, see [the docs][godoc].
|
To use the Go programming language library, see [the docs][godoc].
|
||||||
|
|
||||||
To use the command line tool, first [build it](#Building), then the following.
|
To use the command line tool, first [build it](#Building), then the following.
|
||||||
|
|
||||||
|
|
||||||
### Create a manifest
|
### Create a manifest
|
||||||
|
|
||||||
This will also include the sha512 digest of the files.
|
This will also include the sha512 digest of the files.
|
||||||
|
@ -173,7 +168,6 @@ Available keywords:
|
||||||
sha512digest
|
sha512digest
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
Either:
|
Either:
|
||||||
|
@ -193,18 +187,19 @@ go build ./cmd/gomtree
|
||||||
## Testing
|
## Testing
|
||||||
|
|
||||||
On Linux:
|
On Linux:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd $GOPATH/src/github.com/vbatts/go-mtree
|
cd $GOPATH/src/github.com/vbatts/go-mtree
|
||||||
make
|
make
|
||||||
```
|
```
|
||||||
|
|
||||||
On FreeBSD:
|
On FreeBSD:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd $GOPATH/src/github.com/vbatts/go-mtree
|
cd $GOPATH/src/github.com/vbatts/go-mtree
|
||||||
gmake
|
gmake
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
[mtree(8)]: https://www.freebsd.org/cgi/man.cgi?mtree(8)
|
[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
|
[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
|
[archiecobbs/mtree-port]: https://github.com/archiecobbs/mtree-port
|
||||||
|
|
Loading…
Add table
Reference in a new issue