summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-03-24 00:08:03 +0000
committermidipix <writeonce@midipix.org>2021-03-24 00:08:03 +0000
commit15903b7303c7df9da80045098eed98be06d44b1a (patch)
tree32524e0e257317882b704f6efd8915c13ef26f1e /src
parent9a5f9681f88126c47e11ef49e7fb01c604c90986 (diff)
downloadslibtool-15903b7303c7df9da80045098eed98be06d44b1a.tar.bz2
slibtool-15903b7303c7df9da80045098eed98be06d44b1a.tar.xz
install mode: slbt_exec_install(): added legacy shtool support.
Diffstat (limited to 'src')
-rw-r--r--src/logic/slbt_exec_install.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/logic/slbt_exec_install.c b/src/logic/slbt_exec_install.c
index f87db59..7277179 100644
--- a/src/logic/slbt_exec_install.c
+++ b/src/logic/slbt_exec_install.c
@@ -599,6 +599,7 @@ int slbt_exec_install(
char * slash;
char * optsh;
char * script;
+ char * shtool;
struct slbt_exec_ctx * actx;
struct argv_meta * meta;
struct argv_entry * entry;
@@ -634,6 +635,19 @@ int slbt_exec_install(
optsh = *iargv++;
script = *iargv;
}
+ } else {
+ slash = strrchr(iargv[0],'/');
+ shtool = slash ? ++slash : iargv[0];
+ shtool = strcmp(shtool,"shtool") ? 0 : shtool;
+
+ if (shtool && iargv[1] && !strcmp(iargv[1],"install")) {
+ iargv++;
+ } else if (shtool) {
+ return slbt_install_usage(
+ fdout,
+ dctx->program,
+ 0,optv,0);
+ }
}
/* missing arguments? */