diff options
author | midipix <writeonce@midipix.org> | 2016-04-20 05:39:34 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-20 05:39:34 -0400 |
commit | af8d176b6291c45bffb3e2d2e98d6260571c99af (patch) | |
tree | 8c972a4746ac9cbfc786fa71ac08f015db1cd4fa /src | |
parent | 5b792c8ff99d0e01e74971e5eeb0323c441dc63b (diff) | |
download | slibtool-af8d176b6291c45bffb3e2d2e98d6260571c99af.tar.bz2 slibtool-af8d176b6291c45bffb3e2d2e98d6260571c99af.tar.xz |
install mode: handle .lai install arguments as gracefully as possible.
Diffstat (limited to 'src')
-rw-r--r-- | src/logic/slbt_exec_install.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_install.c b/src/logic/slbt_exec_install.c index ffb689a..008c89d 100644 --- a/src/logic/slbt_exec_install.c +++ b/src/logic/slbt_exec_install.c @@ -244,8 +244,14 @@ static int slbt_exec_install_entry( ? false : true; + dot = strrchr(entry->arg,'.'); + + /* .lai --> .la */ + if (!fexe && dot && !strcmp(dot,".lai")) + dot[3] = 0; + /* .la ? */ - if (!fexe && (!(dot = strrchr(entry->arg,'.')) || strcmp(dot,".la"))) { + if (!fexe && (!dot || strcmp(dot,".la"))) { *src = (char *)entry->arg; *dst = dest ? 0 : (char *)last->arg; |