diff -crN tar-1.12/src/tar.c tar-1.12+bzip2/src/tar.c *** tar-1.12/src/tar.c Sat Apr 26 05:09:49 1997 --- tar-1.12+bzip2/src/tar.c Tue Jun 16 16:55:28 1998 *************** *** 16,21 **** --- 16,26 ---- with this program; if not, write to the Free Software Foundation, Inc., 59 Place - Suite 330, Boston, MA 02111-1307, USA. */ + /* 13 Oct 97: patched by Hiroshi Takekawa to integrate bzip2 as + compression filter (option -I) + 16 Jun 98: -I specified required_argument... modified to no_argument + */ + #include "system.h" #include *************** *** 196,201 **** --- 201,208 ---- {"block-number", no_argument, NULL, 'R'}, {"block-size", required_argument, NULL, OBSOLETE_BLOCKING_FACTOR}, {"blocking-factor", required_argument, NULL, 'b'}, + {"bzip2", no_argument, NULL, 'I'}, + {"bunzip2", no_argument, NULL, 'I'}, {"catenate", no_argument, NULL, 'A'}, {"checkpoint", no_argument, &checkpoint_option, 1}, {"compare", no_argument, NULL, 'd'}, *************** *** 372,377 **** --- 379,385 ---- PATTERN at list/extract time, a globbing PATTERN\n\ -o, --old-archive, --portability write a V7 format archive\n\ --posix write a POSIX conformant archive\n\ + -I, --bzip2, --bunzip2 filter the archive through bzip2\n\ -z, --gzip, --ungzip filter the archive through gzip\n\ -Z, --compress, --uncompress filter the archive through compress\n\ --use-compress-program=PROG filter through PROG (must accept -d)\n"), *************** *** 448,454 **** Y per-block gzip compression */ #define OPTION_STRING \ ! "-01234567ABC:F:GK:L:MN:OPRST:UV:WX:Zb:cdf:g:hiklmoprstuvwxz" static void set_subcommand_option (enum subcommand subcommand) --- 456,462 ---- Y per-block gzip compression */ #define OPTION_STRING \ ! "-01234567ABC:F:GIK:L:MN:OPRST:UV:WX:Zb:cdf:g:hiklmoprstuvwxz" static void set_subcommand_option (enum subcommand subcommand) *************** *** 805,810 **** --- 813,822 ---- case 'X': exclude_option = 1; add_exclude_file (optarg); + break; + + case 'I': + set_use_compress_program_option ("bzip2"); break; case 'z':