archivegen

command module
v0.0.0-...-20af688 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2019 License: BSD-3-Clause Imports: 15 Imported by: 0

README

archivegen

archivegen [OPTIONS...] [FILES...]
  -C string
    	chdir
  -X value
    	variable
    	e.g. '-X foo=bar -X a=b'
  -fmt string
    	file format, cpio/tar (default "tar")
  -format
    	print archive format
  -out string
    	output file (default "out.archive")
  -print
    	print resolved tree in archivegen format
  -rootfs string
    	ELF rootfs
  -stdout
    	output to stdout
  -timestamp
    	preserve file timestamps
  -version
    	version

file format

Format:
  * required
  - omit

  Variable
    // variables do not apply across files
    $ *name value

  Directory
    d *dst mode uid gid

  Symlink
    // dst is the filename in archive
    // 'l to from' = 'from -> to'

    l *dst *src uid gid

  File
    f *src dst mode uid gid
    // fr is relative

  Recursive
    // omitted dst will target archive root
    // src path is stripped from dst

    R *src *dst uid gid
    // Rr is relative

  Glob
    g *src *dst uid gid
    // gr is relative

  Create
    // all preceding ' ' and \t are stripped
    // from data and file is \n terminated
    // 'c file - - -	 foo  bar  ' = 'foo  bar  '

    c *dst mode uid gid *data
    // cl is not \n terminated

  ELF
    // elf is prefixed with rootfs when it is not omitted
    L *elf dst mode uid gid rootfs
    // gL is globbed

Masks:
  Mode
    mm *idx *regexp mode uid gid

  Ignore
    mi *idx *regexp
    // mI is reversed

  Rename
    mr *idx *regexp *dst

  Clear
    mc idx

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
tar

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL