Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/pax Implement --use-compress-program.



details:   https://anonhg.NetBSD.org/src/rev/f67468b725c8
branches:  trunk
changeset: 494262:f67468b725c8
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Jul 04 17:24:47 2000 +0000

description:
Implement --use-compress-program.

diffstat:

 bin/pax/options.c |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (45 lines):

diff -r 4f52c55f7e68 -r f67468b725c8 bin/pax/options.c
--- a/bin/pax/options.c Tue Jul 04 17:17:49 2000 +0000
+++ b/bin/pax/options.c Tue Jul 04 17:24:47 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: options.c,v 1.29 2000/07/04 17:17:49 thorpej Exp $     */
+/*     $NetBSD: options.c,v 1.30 2000/07/04 17:24:47 thorpej Exp $     */
 
 /*-
  * Copyright (c) 1992 Keith Muller.
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)options.c  8.2 (Berkeley) 4/18/94";
 #else
-__RCSID("$NetBSD: options.c,v 1.29 2000/07/04 17:17:49 thorpej Exp $");
+__RCSID("$NetBSD: options.c,v 1.30 2000/07/04 17:24:47 thorpej Exp $");
 #endif
 #endif /* not lint */
 
@@ -665,13 +665,13 @@
        { "uncompress",         no_argument,            0,      'Z' },
        { "unlink",             no_argument,            0,
                                                OPT_UNLINK },
+       { "use-compress-program", required_argument,    0,
+                                               OPT_USE_COMPRESS_PROGRAM },
 #if 0 /* Not implemented */
        { "catenate",           no_argument,            0,      'A' },  /* F */
        { "concatenate",        no_argument,            0,      'A' },  /* F */
        { "diff",               no_argument,            0,      'd' },  /* F */
        { "compare",            no_argument,            0,      'd' },  /* F */
-       { "use-compress-program", required_argument,    0,
-                                               OPT_USE_COMPRESS_PROGRAM },
        { "checkpoint",         no_argument,            0,
                                                OPT_CHECKPOINT },
        { "help",               no_argument,
@@ -916,6 +916,10 @@
                case OPT_UNLINK:
                        /* Just ignore -- we always unlink first. */
                        break;
+               case OPT_USE_COMPRESS_PROGRAM:
+                       zflag = 1;
+                       gzip_program = optarg;
+                       break;
                default:
                        tar_usage();
                        break;



Home | Main Index | Thread Index | Old Index