author | Olivier Brunel
<jjk@jjacky.com> 2023-07-21 10:47:59 UTC |
committer | Olivier Brunel
<jjk@jjacky.com> 2023-07-21 10:48:15 UTC |
parent | 041e29d2a991d68c187664768d94bb3e38d5b556 |
configure | +4 | -4 |
mkreadme | +1 | -1 |
diff --git a/configure b/configure index c75b3b9..69b4dd5 100755 --- a/configure +++ b/configure @@ -486,10 +486,10 @@ procdep() eval "libs$depname=\"$deplibs\"" eval "libsA$depname=\"$deplibsA\"" - function mkvpath() + mkvpath() { local link=$1 - local vpath=$2 + local vpath="$2" shift 2 local ext1=so local ext2=a @@ -500,10 +500,10 @@ procdep() fi for lib in $@; do if test $(($link & 5)) -ge 1; then - echo vpath lib${lib:2:${#lib}}.$ext1 $vpath + echo vpath lib$(expr substr "$lib" 3 ${#lib}).$ext1 $vpath fi if test $(($link & 6)) -ge 2; then - echo vpath lib${lib:2:${#lib}}.$ext2 $vpath + echo vpath lib$(expr substr "$lib" 3 ${#lib}).$ext2 $vpath fi link=$(($link | 4)) done diff --git a/mkreadme b/mkreadme index 63d686e..c6c8cb6 100755 --- a/mkreadme +++ b/mkreadme @@ -3,7 +3,7 @@ . "$(dirname $0)"/libcomain isprj=0 -if test "$1" == "--project"; then isprj=1; fi +if test "$1" = "--project"; then isprj=1; fi loadoptions loaddeps