From 0be5d30fd52714e0125298818ac14d51decd578b Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 1 Apr 2010 21:21:21 +0200 Subject: [PATCH] Add make_def64 --- bacula/src/win32/lib/make_def64 | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 bacula/src/win32/lib/make_def64 diff --git a/bacula/src/win32/lib/make_def64 b/bacula/src/win32/lib/make_def64 new file mode 100755 index 0000000000..08352d1b72 --- /dev/null +++ b/bacula/src/win32/lib/make_def64 @@ -0,0 +1,30 @@ +#!/bin/sh +# +# Make the stupid bacula.def file so that we don't have to do it +# manually +# +# Kern Sibbald, June 2007 +# + +TOPDIR=`(cd ../../..;pwd)` +TOPDIR=${DEPKGS:-${TOPDIR}} +NM=${TOPDIR}/cross-tools/mingw-w64/bin/x86_64-pc-mingw32-nm + +echo "LIBRARY bacula.dll" +echo "EXPORTS" +echo " " + +cd obj64 +for i in *.o ; do \ + echo "; $i"; \ + ${NM} $i | grep "^[0-9a-f]* T _" | cut -c13- ; \ + echo " "; \ +done + +DATA="\ + console_command \ + plugin_list" + +for i in ${DATA}; do \ + echo "$i DATA"; \ +done -- 2.39.5