summaryrefslogtreecommitdiffhomepage
path: root/src/skin
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-07-13 05:03:48 +0000
committermidipix <writeonce@midipix.org>2024-07-14 20:18:46 +0000
commit5ea1d7cd4b630a91b4a72fb722a937a107d76fc0 (patch)
tree034f126157e388b09a615989d959d6ac39402824 /src/skin
parentc1438ffaef9c2f9ae116ebc375db2cc1468c341c (diff)
downloadtpax-5ea1d7cd4b630a91b4a72fb722a937a107d76fc0.tar.bz2
tpax-5ea1d7cd4b630a91b4a72fb722a937a107d76fc0.tar.xz
driver: -s <replstr> support: implementation and integration.
Diffstat (limited to 'src/skin')
-rw-r--r--src/skin/tpax_skin_default.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/skin/tpax_skin_default.c b/src/skin/tpax_skin_default.c
index a618645..dd62b86 100644
--- a/src/skin/tpax_skin_default.c
+++ b/src/skin/tpax_skin_default.c
@@ -93,6 +93,21 @@ const tpax_hidden struct argv_option tpax_default_options[] = {
"a user-provided, format-specific keyval array of the form "
"keyword[[:]=value][,keyword[[:]=value], ...]"},
+ {"Wreplstr", 's',TAG_REPLSTR,ARGV_OPTARG_REQUIRED,
+ ARGV_OPTION_HYBRID_ONLY|ARGV_OPTION_HYBRID_SPACE,0,0,
+ "rename files and archive members as they are being added to "
+ "or extracted from the archive according to the specified "
+ "ed(1) style replacement string, which should be in the format "
+ "<sep><regex><sep><replstr><sep>[gp]; as an example, "
+ "-s ',^/git/tpax/,tpax-1.2.3/,' uses <comma> as the separator "
+ "character, and instructs pax to prefix all files rooted in "
+ "'/git/tpax/' with 'tpax-1.2.3/' while leaving the names of files which "
+ "do not match the regex expression unchanged. "
+ "When this option is repeated, pax shall attempt to match each file or "
+ "member name against all of the provided repalcement-string arguments "
+ "in the order of appearnce on the command line until the first "
+ "successful match."},
+
{"Wstrict-device-id",
'X',TAG_STRICT_DEVICE_ID,ARGV_OPTARG_NONE,
ARGV_OPTION_HYBRID_ONLY,0,0,