TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:7144] bzip and tar
*Whap*!
Duh.. I have the friggin' source code! It must be too hot and humid out today
;-)
--
_ _ _ _ _ ___ _ _ _ ___ _ _ __ Suicidal twin kills
/ \/ \(_)| ' // ._\ / - \(_)/ ./| ' /(__ sister by mistake!
\_||_/|_||_|_\\___/ \_-_/|_|\__\|_|_\ __)
[ Mike Hicks | http://umn.edu/~hick0088 | mailto:hick0088@tc.umn.edu ]
--- tar.c Thu Jul 22 22:25:44 1999
+++ tar2.c Thu Jul 22 22:19:45 1999
@@ -186,6 +186,8 @@
{"group", required_argument, NULL, GROUP_OPTION},
{"gunzip", no_argument, NULL, 'z'},
{"gzip", no_argument, NULL, 'z'},
+ {"bunzip2", no_argument, NULL, 'y'},
+ {"bzip2", no_argument, NULL, 'y'},
{"help", no_argument, &show_help, 1},
{"ignore-failed-read", no_argument, &ignore_failed_read_option, 1},
{"ignore-zeros", no_argument, NULL, 'i'},
@@ -341,6 +343,7 @@
-o, --old-archive, --portability write a V7 format archive\n\
--posix write a POSIX conformant archive\n\
-z, --gzip, --ungzip filter the archive through gzip\n\
+ -y, --bzip2, --unbzip2 filter the archive through bzip2\n\
-Z, --compress, --uncompress filter the archive through compress\n\
--use-compress-program=PROG filter through PROG (must accept -d)\n"),
stdout);
@@ -416,7 +419,7 @@
Y per-block gzip compression */
#define OPTION_STRING \
- "-01234567ABC:F:GK:L:MN:OPRST:UV:WX:Zb:cdf:g:hiklmoprstuvwxz"
+ "-01234567ABC:F:GK:L:MN:OPRST:UV:WX:Zb:cdf:g:hiklmoprstuvwxyz"
static void
set_subcommand_option (enum subcommand subcommand)
@@ -786,6 +789,10 @@
case 'X':
if (add_exclude_file (excluded, optarg, '\n') != 0)
FATAL_ERROR ((0, errno, "%s", optarg));
+ break;
+
+ case 'y':
+ set_use_compress_program_option ("bzip2");
break;
case 'z':