build_win.sh
987 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
IMAGE=image.w32
LOCALE=$IMAGE/locale
PACKET=$PWD/g3270_`date +%G%m%d%H%M`.zip
rm -fr bin/Release
make Release
if [ "$?" != "0" ]; then
exit -1
fi
rm -fr $IMAGE
mkdir $IMAGE
if [ "$?" != "0" ]; then
exit -1
fi
mv bin/Release/g3270.exe $IMAGE
if [ "$?" != "0" ]; then
exit -1
fi
mv bin/Release/*.dll $IMAGE
if [ "$?" != "0" ]; then
exit -1
fi
cp image/*.jpg $IMAGE/g3270.jpg
if [ "$?" != "0" ]; then
exit -1
fi
cp src/g3270/ui.xml $IMAGE
if [ "$?" != "0" ]; then
exit -1
fi
cp src/g3270/fonts.conf $IMAGE
if [ "$?" != "0" ]; then
exit -1
fi
cp g3270.conf $IMAGE
if [ "$?" != "0" ]; then
exit -1
fi
#cp actions.win $IMAGE/actions.conf
#if [ "$?" != "0" ]; then
# exit -1
#fi
mkdir -p $LOCALE/pt_BR/LC_MESSAGES
if [ "$?" != "0" ]; then
exit -1
fi
msgfmt -c -v -o $LOCALE/pt_BR/LC_MESSAGES/g3270.mo po/pt_BR.po
if [ "$?" != "0" ]; then
exit -1
fi
mv g3270_*.zip /tmp
cd $IMAGE
zip -9 -r $PACKET *
if [ "$?" != "0" ]; then
exit -1
fi
echo $PACKET gerado!