]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/cats/make_def
Restore win32 dir from Branch-5.2 and update it
[bacula/bacula] / bacula / src / win32 / cats / 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 echo "LIBRARY bacula_cats.dll"
10 echo "EXPORTS"
11 echo " "
12
13 TOPDIR=`(cd ../../..;pwd)`
14 TOPDIR=${DEPKGS:-${TOPDIR}}
15 NM=i686-w64-mingw32-nm
16
17 OBJS="sql.o sql_create.o sql_delete.o sql_find.o sql_get.o \
18       sql_list.o sql_update.o bvfs.o sql_glue.o cats.o postgresql.o"
19
20 #
21 # The data could be automated too        
22 #
23 DATA="\
24       client_backups \
25       list_pool \
26       drop_deltabs \
27       create_deltabs \
28       sel_JobMedia \
29       uar_list_jobs \
30       uar_file \
31       uar_count_files \
32       uar_sel_files \
33       uar_del_temp \
34       uar_del_temp1 \
35       uar_create_temp \
36       uar_create_temp1 \
37       uar_last_full \
38       uar_full \
39       uar_inc \
40       uar_list_temp \
41       uar_sel_all_temp1 \
42       uar_sel_fileset \
43       uar_jobid_fileindex \
44       uar_dif \
45       uar_sel_all_temp \
46       uar_count_files \
47       uar_jobids_fileindex \
48       uar_jobid_fileindex_from_dir \
49       uar_jobid_fileindex_from_table \
50       cleanup_created_job \
51       cleanup_running_job \
52       get_restore_objects \
53       get_restore_objects \
54       uar_sel_filesetid \
55       create_delindex \
56       expired_volumes \
57       uap_upgrade_copies_oldest_job \
58       uar_print_jobs \
59       get_restore_objects \
60       uar_sel_jobid_temp" 
61
62
63 cd obj32/cats_postgresql
64 for i in ${OBJS}; do \
65    echo "; $i"; \
66    ${NM} $i | grep "^[0-9a-f]* T _" | cut -c13-; \
67    echo " "; \
68 done
69
70 for i in ${DATA}; do \
71    echo "$i DATA"; \
72 done