]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/dllnames.sh
Newest version of script(s) for creating DLLs - now divided in two,
[wxWidgets.git] / src / os2 / dllnames.sh
diff --git a/src/os2/dllnames.sh b/src/os2/dllnames.sh
new file mode 100644 (file)
index 0000000..6365aaf
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+# dllnames - a tool to form short DLL names for wxWindows
+#
+# This script will accept an import library name and create
+# a short(er) DLL name from it.
+
+dllFile="$1"
+case $dllFile in
+*wx_base_*)
+    dllFile=`echo $dllFile | sed 's/base_\(...\)/b\1/'`
+    ;;
+*wx_*_*)
+    dllFile=`echo $dllFile | sed 's/_\(..\)[^_]*_\(..\)[^-]*-/\1\2/'`
+    ;;
+*)
+    ;;
+esac
+dllFile="`echo $dllFile | sed 's/\.//' | sed 's/_//' | sed 's/-//'`"
+echo $dllFile
+exit 0
\ No newline at end of file