[BusyBox] tar usage with busybox-pre10
Brad Campbell
brad at wasp.net.au
Sat Apr 17 11:14:52 UTC 2004
G'day all,
I'm not subscribed so please cc me on any response..
There appears to be some ambiguity with CONFIG_FEATURE_TAR_FROM and CONFIG_FEATURE_TAR_EXCLUDE
that prevents the usage for -T and -X being included when CONFIG_FEATURE_TAR_FROM=y
It's not a functional bug, just cosmetic really..
-------------- next part --------------
diff -ur busybox-1.00-pre10/include/usage.h busybox-1.00-pre10.new/include/usage.h
--- busybox-1.00-pre10/include/usage.h 2004-04-13 23:27:20.000000000 +0400
+++ busybox-1.00-pre10.new/include/usage.h 2004-04-17 15:11:57.000000000 +0400
@@ -2374,10 +2374,10 @@
#else
#define USAGE_TAR_CREATE(a)
#endif
-#ifdef CONFIG_FEATURE_TAR_EXCLUDE
- #define USAGE_TAR_EXCLUDE(a) a
+#ifdef CONFIG_FEATURE_TAR_FROM
+ #define USAGE_TAR_FROM(a) a
#else
- #define USAGE_TAR_EXCLUDE(a)
+ #define USAGE_TAR_FROM(a)
#endif
#ifdef CONFIG_FEATURE_TAR_GZIP
#define USAGE_TAR_GZIP(a) a
@@ -2397,7 +2397,7 @@
#define tar_trivial_usage \
"-[" USAGE_TAR_CREATE("c") USAGE_TAR_GZIP("z") USAGE_TAR_BZIP2("j") USAGE_TAR_COMPRESS("Z") "xtvO] " \
- USAGE_TAR_EXCLUDE("[-X FILE]") \
+ USAGE_TAR_FROM("[-X FILE]") \
"[-f TARFILE] [-C DIR] [FILE(s)] ..."
#define tar_full_usage \
"Create, extract, or list files from a tar file.\n\n" \
@@ -2412,7 +2412,7 @@
"\nFile selection:\n" \
"\tf\t\tname of TARFILE or \"-\" for stdin\n" \
"\tO\t\textract to stdout\n" \
- USAGE_TAR_EXCLUDE( \
+ USAGE_TAR_FROM( \
"\texclude\t\tfile to exclude\n" \
"\tX\t\tfile with names to exclude\n" \
) \
More information about the busybox
mailing list