cpio: optional support for writing cpio files in newc format.

by pascal.bellard AT ads-lu.com.

function                                             old     new   delta
cpio_main                                            247    1122    +875
cpio_pad4                                              -      58     +58
gnu_dev_major                                         66      99     +33
gnu_dev_minor                                         38      57     +19
packed_usage                                       23964   23978     +14
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 4/0 up/down: 999/0)             Total: 999 bytes
This commit is contained in:
Denis Vlasenko
2008-04-05 00:07:46 +00:00
parent 7f8f0fafdb
commit 261f237024
3 changed files with 225 additions and 19 deletions

View File

@ -509,13 +509,20 @@
"\n -l,-s Create (sym)links" \
#define cpio_trivial_usage \
"-[dimtuv][F cpiofile]"
"-[dim" USE_FEATURE_CPIO_O("o") "tuv][F cpiofile]" \
USE_FEATURE_CPIO_O( "[H newc]" )
#define cpio_full_usage \
"Extract or list files from a cpio archive\n" \
"Extract or list files from a cpio archive" \
USE_FEATURE_CPIO_O( ", or create a cpio archive" ) \
"\n" \
"Main operation mode:" \
"\n d Make leading directories" \
"\n i Extract" \
"\n m Preserve mtime" \
USE_FEATURE_CPIO_O( \
"\n o Create" \
"\n H newc Define format" \
) \
"\n t List" \
"\n v Verbose" \
"\n u Unconditional overwrite" \