diff options
author | midipix <writeonce@midipix.org> | 2016-09-10 22:58:54 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-09-11 00:19:03 -0400 |
commit | f8ac22f49c21f21e9d80d787c37e8772f9f77987 (patch) | |
tree | 3ac9eb078a414e3f18b5bce5199218d36474e07f /src | |
parent | 819200628308694c4de3a90cb8b4ecdece1393e2 (diff) | |
download | slibtool-f8ac22f49c21f21e9d80d787c37e8772f9f77987.tar.bz2 slibtool-f8ac22f49c21f21e9d80d787c37e8772f9f77987.tar.xz |
install mode: support the -f (force copy) command line argument.
Diffstat (limited to 'src')
-rw-r--r-- | src/internal/slibtool_install_impl.h | 1 | ||||
-rw-r--r-- | src/logic/slbt_exec_install.c | 4 | ||||
-rw-r--r-- | src/skin/slbt_skin_install.c | 3 |
3 files changed, 8 insertions, 0 deletions
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"}, |