summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-23 22:32:38 +0000
committermidipix <writeonce@midipix.org>2024-03-23 22:32:38 +0000
commite6c34e06a12a0f8fd7deb17d8d4d2b050efbb673 (patch)
tree2535320dba0558e08f9870648a964a977f27cab8 /src
parentaf48d3eca38ff4116eea71b805311ce9ed4cf0ad (diff)
downloadslibtool-e6c34e06a12a0f8fd7deb17d8d4d2b050efbb673.tar.bz2
slibtool-e6c34e06a12a0f8fd7deb17d8d4d2b050efbb673.tar.xz
slibtoolize: driver: added support for --debug and --dry-run.
Diffstat (limited to 'src')
-rw-r--r--src/internal/slibtool_driver_impl.h2
-rw-r--r--src/logic/slbt_exec_stoolie.c8
-rw-r--r--src/skin/slbt_skin_stoolie.c7
3 files changed, 17 insertions, 0 deletions
diff --git a/src/internal/slibtool_driver_impl.h b/src/internal/slibtool_driver_impl.h
index b726f32..bc9a44f 100644
--- a/src/internal/slibtool_driver_impl.h
+++ b/src/internal/slibtool_driver_impl.h
@@ -108,6 +108,8 @@ enum app_tags {
TAG_STLE_COPY,
TAG_STLE_FORCE,
TAG_STLE_INSTALL,
+ TAG_STLE_DEBUG,
+ TAG_STLE_DRY_RUN,
};
struct slbt_split_vector {
diff --git a/src/logic/slbt_exec_stoolie.c b/src/logic/slbt_exec_stoolie.c
index 99b1ca1..100f913 100644
--- a/src/logic/slbt_exec_stoolie.c
+++ b/src/logic/slbt_exec_stoolie.c
@@ -157,6 +157,14 @@ int slbt_exec_stoolie(const struct slbt_driver_ctx * dctx)
case TAG_STLE_INSTALL:
ictx->cctx.drvflags |= SLBT_DRIVER_STOOLIE_INSTALL;
break;
+
+ case TAG_STLE_DEBUG:
+ ictx->cctx.drvflags |= SLBT_DRIVER_DEBUG;
+ break;
+
+ case TAG_STLE_DRY_RUN:
+ ictx->cctx.drvflags |= SLBT_DRIVER_DRY_RUN;
+ break;
}
if (entry->fval) {
diff --git a/src/skin/slbt_skin_stoolie.c b/src/skin/slbt_skin_stoolie.c
index be417e5..c834f84 100644
--- a/src/skin/slbt_skin_stoolie.c
+++ b/src/skin/slbt_skin_stoolie.c
@@ -21,5 +21,12 @@ const slbt_hidden struct argv_option slbt_stoolie_options[] = {
"create symbolic links to, or otherwise copy "
"missing build-auxiliary and m4 files."},
+ {"debug", 'd',TAG_STLE_DEBUG,ARGV_OPTARG_NONE,0,0,0,
+ "display internal debug information."},
+
+ {"dry-run", 'n',TAG_STLE_DRY_RUN,ARGV_OPTARG_NONE,0,0,0,
+ "do not spawn any processes, "
+ "do not make any changes to the file system."},
+
{0,0,0,0,0,0,0,0}
};