]>
Commit | Line | Data |
---|---|---|
d5a547f3 SN |
1 | #!/bin/sh |
2 | # | |
3 | # dllnames - a tool to form short DLL names for wxWindows | |
4 | # | |
5 | # This script will accept an import library name and create | |
6 | # a short(er) DLL name from it. | |
7 | ||
8 | dllFile="$1" | |
0415c02d SN |
9 | dirName=`echo $dllFile | sed 's-\(.*[/\\]\)[^/\\]*$-\1-'` |
10 | dllFile=`echo $dllFile | sed 's-.*[/\\]\([^/\\]*\)$-\1-'` | |
d5a547f3 SN |
11 | case $dllFile in |
12 | *wx_base_*) | |
13 | dllFile=`echo $dllFile | sed 's/base_\(...\)/b\1/'` | |
14 | ;; | |
687da539 | 15 | *wx_based_*) |
7e2bb04d | 16 | dllFile=`echo $dllFile | sed 's/based_\(...\)/d\1/'` |
687da539 SN |
17 | ;; |
18 | *wx_based-*) | |
19 | dllFile=`echo $dllFile | sed 's/based/basd/'` | |
20 | ;; | |
21 | *wx_*d_*) | |
22 | dllFile=`echo $dllFile | sed 's/_\(.\)[^_]*_\(..\)[^-]*-/\1d\2/'` | |
23 | ;; | |
d5a547f3 SN |
24 | *wx_*_*) |
25 | dllFile=`echo $dllFile | sed 's/_\(..\)[^_]*_\(..\)[^-]*-/\1\2/'` | |
26 | ;; | |
27 | *) | |
28 | ;; | |
29 | esac | |
30 | dllFile="`echo $dllFile | sed 's/\.//' | sed 's/_//' | sed 's/-//'`" | |
0415c02d | 31 | echo $dirName$dllFile |
d5a547f3 | 32 | exit 0 |