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