From 261f237024d9881e110f271fb575728f666b25b4 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 5 Apr 2008 00:07:46 +0000 Subject: 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 --- include/usage.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/usage.h b/include/usage.h index 529a228ec..0849c6831 100644 --- a/include/usage.h +++ b/include/usage.h @@ -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" \ -- cgit v1.2.3