summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-10-07 07:19:09 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2008-10-07 07:19:09 +0000
commit1428b7f1764ae29ca1e975a0762872569fccb8df (patch)
tree130dcf40db6018c6ea2aade5ca2df2cafd1eee69
parent6901594ac45b88e68a19dd7221511ddf9ff44f66 (diff)
downloadtar-1428b7f1764ae29ca1e975a0762872569fccb8df.tar.gz
(options): Add --lzop option.
-rw-r--r--src/tar.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tar.c b/src/tar.c
index 24279c72..c2ead135 100644
--- a/src/tar.c
+++ b/src/tar.c
@@ -271,6 +271,7 @@ enum
IGNORE_FAILED_READ_OPTION,
INDEX_FILE_OPTION,
KEEP_NEWER_FILES_OPTION,
+ LZOP_OPTION,
MODE_OPTION,
MTIME_OPTION,
NEWER_MTIME_OPTION,
@@ -607,6 +608,8 @@ static struct argp_option options[] = {
{"uncompress", 0, 0, OPTION_ALIAS, NULL, GRID+1 },
{"lzma", 'J', 0, 0,
N_("filter the archive through lzma"), GRID+1 },
+ {"lzop", LZOP_OPTION, 0, 0,
+ N_("filter the archive through lzop"), GRID+8 },
{"use-compress-program", USE_COMPRESS_PROGRAM_OPTION, N_("PROG"), 0,
N_("filter through PROG (must accept -d)"), GRID+1 },
#undef GRID
@@ -1405,6 +1408,10 @@ parse_opt (int key, char *arg, struct argp_state *state)
}
break;
+ case LZOP_OPTION:
+ set_use_compress_program_option ("lzop");
+ break;
+
case 'm':
touch_option = true;
break;