X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/687da5395f3fc712c40183ba258d4c35ddeda0c0..aa83b6fc90e78371fcc2fb69de77ab7b90293dd1:/src/os2/dllnames.sh diff --git a/src/os2/dllnames.sh b/src/os2/dllnames.sh index 2b3fcab16d..443b0da78e 100644 --- a/src/os2/dllnames.sh +++ b/src/os2/dllnames.sh @@ -6,12 +6,14 @@ # a short(er) DLL name from it. dllFile="$1" +dirName=`echo $dllFile | sed 's-\(.*[/\\]\)[^/\\]*$-\1-'` +dllFile=`echo $dllFile | sed 's-.*[/\\]\([^/\\]*\)$-\1-'` case $dllFile in *wx_base_*) dllFile=`echo $dllFile | sed 's/base_\(...\)/b\1/'` ;; *wx_based_*) - dllFile=`echo $dllFile | sed 's/base_\(...\)/d\1/'` + dllFile=`echo $dllFile | sed 's/based_\(...\)/d\1/'` ;; *wx_based-*) dllFile=`echo $dllFile | sed 's/based/basd/'` @@ -26,5 +28,5 @@ case $dllFile in ;; esac dllFile="`echo $dllFile | sed 's/\.//' | sed 's/_//' | sed 's/-//'`" -echo $dllFile +echo $dirName$dllFile exit 0 \ No newline at end of file