summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-23 22:48:47 +0000
committermidipix <writeonce@midipix.org>2024-03-23 22:48:47 +0000
commit8fb92c8e591e827b57a43738a0aa9be9e003d8cd (patch)
tree12b1132b1cbb224d81cd85d40f1074c267b4893d
parente6c34e06a12a0f8fd7deb17d8d4d2b050efbb673 (diff)
downloadslibtool-8fb92c8e591e827b57a43738a0aa9be9e003d8cd.tar.bz2
slibtool-8fb92c8e591e827b57a43738a0aa9be9e003d8cd.tar.xz
slibtoolize: driver: added support for --quiet, --silent, and -verbose.
-rw-r--r--src/internal/slibtool_driver_impl.h2
-rw-r--r--src/logic/slbt_exec_stoolie.c10
-rw-r--r--src/skin/slbt_skin_stoolie.c10
3 files changed, 22 insertions, 0 deletions
diff --git a/src/internal/slibtool_driver_impl.h b/src/internal/slibtool_driver_impl.h
index bc9a44f..b35f375 100644
--- a/src/internal/slibtool_driver_impl.h
+++ b/src/internal/slibtool_driver_impl.h
@@ -110,6 +110,8 @@ enum app_tags {
TAG_STLE_INSTALL,
TAG_STLE_DEBUG,
TAG_STLE_DRY_RUN,
+ TAG_STLE_SILENT,
+ TAG_STLE_VERBOSE,
};
struct slbt_split_vector {
diff --git a/src/logic/slbt_exec_stoolie.c b/src/logic/slbt_exec_stoolie.c
index 100f913..45aa76d 100644
--- a/src/logic/slbt_exec_stoolie.c
+++ b/src/logic/slbt_exec_stoolie.c
@@ -165,6 +165,16 @@ int slbt_exec_stoolie(const struct slbt_driver_ctx * dctx)
case TAG_STLE_DRY_RUN:
ictx->cctx.drvflags |= SLBT_DRIVER_DRY_RUN;
break;
+
+ case TAG_STLE_SILENT:
+ ictx->cctx.drvflags &= ~(uint64_t)SLBT_DRIVER_VERBOSE;
+ ictx->cctx.drvflags |= SLBT_DRIVER_SILENT;
+ break;
+
+ case TAG_STLE_VERBOSE:
+ ictx->cctx.drvflags &= ~(uint64_t)SLBT_DRIVER_SILENT;
+ ictx->cctx.drvflags |= SLBT_DRIVER_VERBOSE;
+ break;
}
if (entry->fval) {
diff --git a/src/skin/slbt_skin_stoolie.c b/src/skin/slbt_skin_stoolie.c
index c834f84..2641ab8 100644
--- a/src/skin/slbt_skin_stoolie.c
+++ b/src/skin/slbt_skin_stoolie.c
@@ -28,5 +28,15 @@ const slbt_hidden struct argv_option slbt_stoolie_options[] = {
"do not spawn any processes, "
"do not make any changes to the file system."},
+ {"quiet", 'q',TAG_STLE_SILENT,ARGV_OPTARG_NONE,0,0,0,
+ "do not say anything."},
+
+ {"silent", 's',TAG_STLE_SILENT,ARGV_OPTARG_NONE,0,0,0,
+ "say absolutely nothing."},
+
+ {"verbose", 'v',TAG_STLE_VERBOSE,ARGV_OPTARG_NONE,0,0,0,
+ "generate lots of informational messages "
+ "that nobody can understand."},
+
{0,0,0,0,0,0,0,0}
};