projects
/
crypto.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0bd389
)
Added.
author
Pekka Riikonen
<priikone@silcnet.org>
Tue, 8 May 2007 16:36:15 +0000
(16:36 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Tue, 8 May 2007 16:36:15 +0000
(16:36 +0000)
scripts/lib2def
[new file with mode: 0755]
patch
|
blob
diff --git a/scripts/lib2def
b/scripts/lib2def
new file mode 100755
(executable)
index 0000000..
aad9dd8
--- /dev/null
+++ b/
scripts/lib2def
@@ -0,0
+1,11
@@
+#!/bin/sh
+#
+# Generate .DEF file from .a file for Win32 DLLs. This attempts to take
+# public SILC Toolkit routines only.
+#
+# The file ALWAYS must be edited by hand to remove some internal functions.
+#
+# Usage: lib2def <lib.a>
+#
+
+nm $1 | grep " T " | cut -dT -f2 | grep silc_ | grep -v _st_ | sed 's/^ /\t/' | awk 'BEGIN { N=1; print "EXPORTS" } { print $0 " @ " N " ;"; N++; }'