]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/lib/make_def
Tweak fix MySQL quoting again :-(
[bacula/bacula] / bacula / src / win32 / lib / make_def
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
9 TOPDIR=`(cd ../../..;pwd)`
10 TOPDIR=${DEPKGS:-${TOPDIR}}
11 NM=${TOPDIR}/cross-tools/mingw32/mingw32/bin/nm
12  
13 echo "LIBRARY bacula.dll"
14 echo "EXPORTS"
15 echo " "
16
17 cd obj32
18 for i in *.o ; do \
19    echo "; $i"; \
20    ${NM} $i | grep "^[0-9a-f]* T _" | cut -c13- ; \
21    echo " "; \
22 done
23
24 DATA="\
25    console_command \
26    plugin_list"
27
28 for i in ${DATA}; do \
29    echo "$i DATA"; \
30 done