research.sh
807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
OO_SDK_HOME=/usr/lib64/libreoffice/sdk
IDLC=/usr/lib64/libreoffice/sdk/bin/idlc
CPPUMAKER=/usr/lib64/libreoffice/sdk/bin/cppumaker
TYPES_RDB=/usr/lib64/libreoffice/ure/share/misc/types.rdb
REGMERGE=/usr/lib64/libreoffice/ure/bin/regmerge
$IDLC -C -I$OO_SDK_HOME/idl -O. pw3270.idl
if [ "$?" != "0" ]; then
exit -1
fi
$REGMERGE pw3270.rdb /UCR pw3270.urd
if [ "$?" != "0" ]; then
exit -1
fi
$CPPUMAKER -O./include -Tpw3270.lib3270 $TYPES_RDB pw3270.rdb
if [ "$?" != "0" ]; then
exit -1
fi
# XWeak
$IDLC -C -I$OO_SDK_HOME/idl -O. /usr/share/idl/libreoffice/com/sun/star/uno/XWeak.idl
if [ "$?" != "0" ]; then
exit -1
fi
$REGMERGE XWeak.rdb /UCR XWeak.urd
if [ "$?" != "0" ]; then
exit -1
fi
$CPPUMAKER -O./include $TYPES_RDB XWeak.rdb
if [ "$?" != "0" ]; then
exit -1
fi
echo ok