From f8ac22f49c21f21e9d80d787c37e8772f9f77987 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 10 Sep 2016 22:58:54 -0400 Subject: install mode: support the -f (force copy) command line argument. --- src/internal/slibtool_install_impl.h | 1 + src/logic/slbt_exec_install.c | 4 ++++ src/skin/slbt_skin_install.c | 3 +++ 3 files changed, 8 insertions(+) diff --git a/src/internal/slibtool_install_impl.h b/src/internal/slibtool_install_impl.h index e5741a7..86c7cfc 100644 --- a/src/internal/slibtool_install_impl.h +++ b/src/internal/slibtool_install_impl.h @@ -8,6 +8,7 @@ extern const struct argv_option slbt_install_options[]; enum install_tags { TAG_INSTALL_HELP, TAG_INSTALL_COPY, + TAG_INSTALL_FORCE, TAG_INSTALL_MKDIR, TAG_INSTALL_TARGET_MKDIR, TAG_INSTALL_STRIP, diff --git a/src/logic/slbt_exec_install.c b/src/logic/slbt_exec_install.c index e21a656..75fb263 100644 --- a/src/logic/slbt_exec_install.c +++ b/src/logic/slbt_exec_install.c @@ -599,6 +599,10 @@ int slbt_exec_install( copy = entry; break; + case TAG_INSTALL_FORCE: + *argv++ = "-f"; + break; + case TAG_INSTALL_MKDIR: *argv++ = "-d"; copy = 0; diff --git a/src/skin/slbt_skin_install.c b/src/skin/slbt_skin_install.c index 5689b02..f0d92a2 100644 --- a/src/skin/slbt_skin_install.c +++ b/src/skin/slbt_skin_install.c @@ -8,6 +8,9 @@ const struct argv_option slbt_install_options[] = { {0, 'c',TAG_INSTALL_COPY,ARGV_OPTARG_NONE,0,0,0, "copy"}, + {0, 'f',TAG_INSTALL_FORCE,ARGV_OPTARG_NONE,0,0,0, + "force copy"}, + {0, 'd',TAG_INSTALL_MKDIR,ARGV_OPTARG_NONE,0,0,0, "create directories"}, -- cgit v1.2.3