]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/dllnames.sh
many compilation fixes for WinCE using VC8 (it now build, although still doesn't...
[wxWidgets.git] / src / os2 / dllnames.sh
index 6365aafe9b2caa9d9cb78ace314fa202045c8569..443b0da78ed11e114295da765dc753099f83b4df 100644 (file)
@@ -6,10 +6,21 @@
 # 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/based_\(...\)/d\1/'`
+    ;;
+*wx_based-*)
+    dllFile=`echo $dllFile | sed 's/based/basd/'`
+    ;;
+*wx_*d_*)
+    dllFile=`echo $dllFile | sed 's/_\(.\)[^_]*_\(..\)[^-]*-/\1d\2/'`
+    ;;
 *wx_*_*)
     dllFile=`echo $dllFile | sed 's/_\(..\)[^_]*_\(..\)[^-]*-/\1\2/'`
     ;;
@@ -17,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