]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/os2/dllnames.sh
regenerated after version.bkl changes fixing -compatibility_version for Darwin
[wxWidgets.git] / src / os2 / dllnames.sh
... / ...
CommitLineData
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
8dllFile="$1"
9case $dllFile in
10*wx_base_*)
11 dllFile=`echo $dllFile | sed 's/base_\(...\)/b\1/'`
12 ;;
13*wx_based_*)
14 dllFile=`echo $dllFile | sed 's/based_\(...\)/d\1/'`
15 ;;
16*wx_based-*)
17 dllFile=`echo $dllFile | sed 's/based/basd/'`
18 ;;
19*wx_*d_*)
20 dllFile=`echo $dllFile | sed 's/_\(.\)[^_]*_\(..\)[^-]*-/\1d\2/'`
21 ;;
22*wx_*_*)
23 dllFile=`echo $dllFile | sed 's/_\(..\)[^_]*_\(..\)[^-]*-/\1\2/'`
24 ;;
25*)
26 ;;
27esac
28dllFile="`echo $dllFile | sed 's/\.//' | sed 's/_//' | sed 's/-//'`"
29echo $dllFile
30exit 0