home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / linux / backup / tar-1.13-bzip2-option-y.patch < prev    next >
Text File  |  1999-07-29  |  2KB  |  65 lines

  1. *** tar.c.orig    Mon Jul 12 16:58:10 1999
  2. --- tar.c    Mon Jul 12 17:02:27 1999
  3. ***************
  4. *** 16,21 ****
  5. --- 16,23 ----
  6.      with this program; if not, write to the Free Software Foundation, Inc.,
  7.      59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  8.   
  9. + /* Patched to integrate bzip2 as compression filter (option -y)  */
  10.   #include "system.h"
  11.   
  12.   #include <getopt.h>
  13. ***************
  14. *** 164,169 ****
  15. --- 166,173 ----
  16.     {"block-number", no_argument, NULL, 'R'},
  17.     {"block-size", required_argument, NULL, OBSOLETE_BLOCKING_FACTOR},
  18.     {"blocking-factor", required_argument, NULL, 'b'},
  19. +   {"bunzip2", required_argument, NULL, 'y'},
  20. +   {"bzip2", required_argument, NULL, 'y'},
  21.     {"catenate", no_argument, NULL, 'A'},
  22.     {"checkpoint", no_argument, &checkpoint_option, 1},
  23.     {"compare", no_argument, NULL, 'd'},
  24. ***************
  25. *** 340,345 ****
  26. --- 344,350 ----
  27.                 PATTERN                at list/extract time, a globbing PATTERN\n\
  28.     -o, --old-archive, --portability   write a V7 format archive\n\
  29.         --posix                        write a POSIX conformant archive\n\
  30. +   -y, --bzip2, --bunzip2             filter the archive through bzip2\n\
  31.     -z, --gzip, --ungzip               filter the archive through gzip\n\
  32.     -Z, --compress, --uncompress       filter the archive through compress\n\
  33.         --use-compress-program=PROG    filter through PROG (must accept -d)\n"),
  34. ***************
  35. *** 416,422 ****
  36.      Y  per-block gzip compression */
  37.   
  38.   #define OPTION_STRING \
  39. !   "-01234567ABC:F:GK:L:MN:OPRST:UV:WX:Zb:cdf:g:hiklmoprstuvwxz"
  40.   
  41.   static void
  42.   set_subcommand_option (enum subcommand subcommand)
  43. --- 421,427 ----
  44.      Y  per-block gzip compression */
  45.   
  46.   #define OPTION_STRING \
  47. !   "-01234567ABC:F:GK:L:MN:OPRST:UV:WX:Zb:cdf:g:hiklmoprstuvwxyz"
  48.   
  49.   static void
  50.   set_subcommand_option (enum subcommand subcommand)
  51. ***************
  52. *** 786,791 ****
  53. --- 791,800 ----
  54.         case 'X':
  55.       if (add_exclude_file (excluded, optarg, '\n') != 0)
  56.         FATAL_ERROR ((0, errno, "%s", optarg));
  57. +     break;
  58. +       case 'y':
  59. +     set_use_compress_program_option ("bzip2");
  60.       break;
  61.   
  62.         case 'z':
  63.