From 0415c02d2337f33742473387b80a1f7fb8c8c860 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sun, 5 Nov 2006 14:47:14 +0000 Subject: [PATCH] Allow passing file names with path to dllnames.sh. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/dllnames.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/os2/dllnames.sh b/src/os2/dllnames.sh index 46abcde3e0..443b0da78e 100644 --- a/src/os2/dllnames.sh +++ b/src/os2/dllnames.sh @@ -6,6 +6,8 @@ # 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/'` @@ -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