summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-05-05 19:43:45 +0000
committermidipix <writeonce@midipix.org>2021-05-05 19:57:26 +0000
commit57ed911158ddb499f958edbdc9df93f5125d8aac (patch)
treedd51ec856f5790683c7c01095d6debb7d9ff1f83
parent04b5c8008287b8d390556dda9a4006bca9d0822d (diff)
downloadslibtool-57ed911158ddb499f958edbdc9df93f5125d8aac.tar.bz2
slibtool-57ed911158ddb499f958edbdc9df93f5125d8aac.tar.xz
uninstall mode: driver: added (referential) --sysroot support.
-rw-r--r--src/internal/slibtool_uninstall_impl.h1
-rw-r--r--src/logic/slbt_exec_uninstall.c3
-rw-r--r--src/skin/slbt_skin_uninstall.c3
3 files changed, 7 insertions, 0 deletions
diff --git a/src/internal/slibtool_uninstall_impl.h b/src/internal/slibtool_uninstall_impl.h
index b78bf37..bef25c5 100644
--- a/src/internal/slibtool_uninstall_impl.h
+++ b/src/internal/slibtool_uninstall_impl.h
@@ -8,6 +8,7 @@ extern const struct argv_option slbt_uninstall_options[];
enum uninstall_tags {
TAG_UNINSTALL_HELP,
TAG_UNINSTALL_VERSION,
+ TAG_UNINSTALL_SYSROOT,
TAG_UNINSTALL_FORCE,
TAG_UNINSTALL_RMDIR,
TAG_UNINSTALL_VERBOSE,
diff --git a/src/logic/slbt_exec_uninstall.c b/src/logic/slbt_exec_uninstall.c
index 7e1d37a..0bfeaa3 100644
--- a/src/logic/slbt_exec_uninstall.c
+++ b/src/logic/slbt_exec_uninstall.c
@@ -326,6 +326,9 @@ int slbt_exec_uninstall(
for (entry=meta->entries; entry->fopt || entry->arg; entry++) {
if (entry->fopt) {
switch (entry->tag) {
+ case TAG_UNINSTALL_SYSROOT:
+ break;
+
case TAG_UNINSTALL_HELP:
flags |= SLBT_UNINSTALL_HELP;
break;
diff --git a/src/skin/slbt_skin_uninstall.c b/src/skin/slbt_skin_uninstall.c
index e34c81e..02b3599 100644
--- a/src/skin/slbt_skin_uninstall.c
+++ b/src/skin/slbt_skin_uninstall.c
@@ -8,6 +8,9 @@ const struct argv_option slbt_uninstall_options[] = {
{"version", 0,TAG_UNINSTALL_VERSION,ARGV_OPTARG_NONE,0,0,0,
"display version information"},
+ {"sysroot", 0,TAG_UNINSTALL_SYSROOT,ARGV_OPTARG_REQUIRED,0,0,"<sysroot>",
+ "reference only: the target's sysroot directory"},
+
{"force", 'f',TAG_UNINSTALL_FORCE,ARGV_OPTARG_NONE,0,0,0,
"force file removal"},