Commit a695435afd95dd0f140882ebfb5a559b50cbfa66
1 parent
73c89b06
Exists in
master
and in
5 other branches
Criando script para empacotar apenas os módulos hllapi para windows.
Showing
2 changed files
with
137 additions
and
1 deletions
Show diff stats
... | ... | @@ -0,0 +1,136 @@ |
1 | +#!/bin/bash | |
2 | + | |
3 | + | |
4 | +# | |
5 | +# Gera binários windows | |
6 | +# | |
7 | +# $1 = Arquitetura (x86_32/x86_64) | |
8 | +# | |
9 | +build() | |
10 | +{ | |
11 | + echo -e "\e]2;${PACKAGE_NAME}-${1}\a" | |
12 | + | |
13 | + case ${1} in | |
14 | + x86_32) | |
15 | + host=i686-w64-mingw32 | |
16 | + host_cpu=i686 | |
17 | + prefix=/usr/i686-w64-mingw32/sys-root/mingw | |
18 | + tools=i686-w64-mingw32 | |
19 | + ;; | |
20 | + | |
21 | + x86_64) | |
22 | + host=x86_64-w64-mingw32 | |
23 | + host_cpu=x86_64 | |
24 | + prefix=/usr/x86_64-w64-mingw32/sys-root/mingw | |
25 | + tools=x86_64-w64-mingw32 | |
26 | + ;; | |
27 | + | |
28 | + | |
29 | + *) | |
30 | + failed "Arquitetura desconhecida: ${1}" | |
31 | + | |
32 | + esac | |
33 | + | |
34 | + # Detecto argumentos | |
35 | + ARGS="" | |
36 | + | |
37 | + ./configure \ | |
38 | + --cache-file=.${1}.cache \ | |
39 | + --host=${host} \ | |
40 | + --prefix=${prefix} \ | |
41 | + --disable-rexx | |
42 | + --disable-java \ | |
43 | + --disable-office | |
44 | + | |
45 | + if [ "$?" != "0" ]; then | |
46 | + failed "Erro ao configurar" | |
47 | + fi | |
48 | + | |
49 | + make clean | |
50 | + rm -f *.exe | |
51 | + | |
52 | + make Release | |
53 | + if [ "$?" != "0" ]; then | |
54 | + failed "Erro ao compilar fontes" | |
55 | + fi | |
56 | + | |
57 | + mkdir -p ${TEMPDIR}/package/${host_cpu} | |
58 | + | |
59 | + cp -v .bin/Release/hllapi.dll* ${TEMPDIR}/package/${host_cpu} | |
60 | + if [ "$?" != "0" ]; then | |
61 | + failed "Erro ao copiar pacotes" | |
62 | + fi | |
63 | + | |
64 | + make clean | |
65 | + rm -f *.exe | |
66 | + | |
67 | +} | |
68 | + | |
69 | +myDIR=$(readlink -f $(dirname $0)) | |
70 | +TEMPDIR=$(mktemp -d) | |
71 | +DESTDIR=${HOME}/public_html/win | |
72 | +RUNTIMEDIR=$(mktemp -d) | |
73 | +ARCHS="x86_32 x86_64" | |
74 | +RUNTIME=1 | |
75 | +COMPLETE=1 | |
76 | + | |
77 | +trap cleanup INT | |
78 | + | |
79 | +until [ -z "$1" ] | |
80 | +do | |
81 | + if [ ${1:0:2} = '--' ]; then | |
82 | + tmp=${1:2} | |
83 | + parameter=${tmp%%=*} | |
84 | + parameter=$(echo $parameter | tr "[:lower:]" "[:upper:]") | |
85 | + | |
86 | + case $parameter in | |
87 | + | |
88 | + 32) | |
89 | + ARCHS="x86_32" | |
90 | + ;; | |
91 | + | |
92 | + 64) | |
93 | + ARCHS="x86_64" | |
94 | + ;; | |
95 | + | |
96 | + OUT) | |
97 | + DESTDIR=$value | |
98 | + ;; | |
99 | + | |
100 | + ARCH) | |
101 | + value=${tmp##*=} | |
102 | + ARCHS=$value | |
103 | + ;; | |
104 | + | |
105 | + *) | |
106 | + value=${tmp##*=} | |
107 | + eval $parameter=$value | |
108 | + esac | |
109 | + | |
110 | + fi | |
111 | + | |
112 | + shift | |
113 | +done | |
114 | + | |
115 | +# Configura | |
116 | +aclocal | |
117 | +if [ "$?" != "0" ]; then | |
118 | + exit -1 | |
119 | +fi | |
120 | + | |
121 | +autoconf | |
122 | +if [ "$?" != "0" ]; then | |
123 | + exit -1 | |
124 | +fi | |
125 | + | |
126 | +# Gera pacotes | |
127 | +for i in ${ARCHS}; do | |
128 | + | |
129 | + build "${i}" | |
130 | + | |
131 | +done | |
132 | + | |
133 | +cd ${TEMPDIR}/package | |
134 | + | |
135 | +zip -9 -m -r ~/public_html/win/hllapi_$(date "+%Y%m%d").zip . | |
136 | + | ... | ... |
po/pt_BR.po
... | ... | @@ -5,7 +5,7 @@ msgid "" |
5 | 5 | msgstr "" |
6 | 6 | "Project-Id-Version: pw3270 5.0\n" |
7 | 7 | "Report-Msgid-Bugs-To: \n" |
8 | -"POT-Creation-Date: 2015-11-10 09:56-0200\n" | |
8 | +"POT-Creation-Date: 2015-12-03 18:12-0200\n" | |
9 | 9 | "PO-Revision-Date: 2014-02-17 08:05-0300\n" |
10 | 10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" |
11 | 11 | "Language-Team: Portugues <>\n" | ... | ... |