]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/lib/make_def64
Restore win32 dir from Branch-5.2 and update it
[bacula/bacula] / bacula / src / win32 / lib / make_def64
1 #!/bin/sh
2 #
3 # Copyright (C) 2000-2018 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
5 #
6 #  Make the stupid bacula.def file so that we don't have to do it
7 #    manually
8 #
9 #  Kern Sibbald, June 2007
10 #
11
12 TOPDIR=`(cd ../../..;pwd)`
13 TOPDIR=${DEPKGS:-${TOPDIR}}
14 NM=x86_64-w64-mingw32-nm
15  
16 echo "LIBRARY bacula.dll"
17 echo "EXPORTS"
18 echo " "
19
20 cd obj64
21 # remove "static" objects before running
22 rm -f parse_conf.* res.*
23
24 for i in `ls *.o | grep -v -e parse_conf.o -e res.o`; do \
25    echo "; $i"; \
26    ${NM} $i | grep -e "^[0-9a-f]* T _" -e "^[0-9a-f]* T b_reg" -e "^[0-9a-f]* T fnmatch" | cut -c20- ; \
27    echo " "; \
28 done
29
30 DATA="console_command b_plugin_list plugin_bopen plugin_bclose plugin_bwrite plugin_bread plugin_blseek exepath version dist_name"
31
32 for i in ${DATA}; do \
33    echo "$i DATA"; \
34 done