Commit ff26b873139d3f81f85d35191fb728afefe8e486
1 parent
40fef4d3
Exists in
master
and in
5 other branches
Criando script de empacotamento windows
Showing
2 changed files
with
242 additions
and
24 deletions
Show diff stats
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-08-05 08:41-0300\n" | |
8 | +"POT-Creation-Date: 2015-08-28 07:44-0300\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" |
... | ... | @@ -356,7 +356,7 @@ msgstr "Erro na assinatura CRL" |
356 | 356 | msgid "C_haracter Coding:" |
357 | 357 | msgstr "C_odificação de caracteres:" |
358 | 358 | |
359 | -#: print.c:413 | |
359 | +#: print.c:421 | |
360 | 360 | msgid "C_olor scheme:" |
361 | 361 | msgstr "Tema de c_ores:" |
362 | 362 | |
... | ... | @@ -764,16 +764,16 @@ msgstr "Apagar até o final do campo" |
764 | 764 | msgid "Erase to end of line" |
765 | 765 | msgstr "Apagar até o final da linha" |
766 | 766 | |
767 | -#: print.c:239 v3270/widget.c:194 util.c:981 | |
767 | +#: print.c:247 v3270/widget.c:194 util.c:981 | |
768 | 768 | msgid "Error" |
769 | 769 | msgstr "Erro" |
770 | 770 | |
771 | -#: ft_cut.c:419 ft_dft.c:461 | |
771 | +#: ft_cut.c:419 ft_dft.c:447 | |
772 | 772 | #, c-format |
773 | 773 | msgid "Error \"%s\" reading from local file (rc=%d)" |
774 | 774 | msgstr "Erro \"%s\" lendo arquivo local (rc=%d)" |
775 | 775 | |
776 | -#: ft_cut.c:525 ft_dft.c:339 | |
776 | +#: ft_cut.c:527 ft_dft.c:325 | |
777 | 777 | #, c-format |
778 | 778 | msgid "Error \"%s\" writing to local file (rc=%d)" |
779 | 779 | msgstr "Erro \"%s\" gravando arquivo local (rc=%d)" |
... | ... | @@ -1112,7 +1112,7 @@ msgstr "Estado inválido na OIA" |
1112 | 1112 | msgid "OIA status ok" |
1113 | 1113 | msgstr "Estado normal na OIA" |
1114 | 1114 | |
1115 | -#: print.c:605 | |
1115 | +#: print.c:613 | |
1116 | 1116 | msgid "Options" |
1117 | 1117 | msgstr "Opções" |
1118 | 1118 | |
... | ... | @@ -1326,7 +1326,7 @@ msgstr "Imprimir" |
1326 | 1326 | msgid "Print copy" |
1327 | 1327 | msgstr "Imprimir cópia" |
1328 | 1328 | |
1329 | -#: print.c:235 | |
1329 | +#: print.c:243 | |
1330 | 1330 | msgid "Print operation failed" |
1331 | 1331 | msgstr "Operação de impressão falhou" |
1332 | 1332 | |
... | ... | @@ -1334,11 +1334,11 @@ msgstr "Operação de impressão falhou" |
1334 | 1334 | msgid "Print selected" |
1335 | 1335 | msgstr "Imprimir seleção" |
1336 | 1336 | |
1337 | -#: print.c:499 | |
1337 | +#: print.c:507 | |
1338 | 1338 | msgid "Print selection box" |
1339 | 1339 | msgstr "Imprimir marca de seleção" |
1340 | 1340 | |
1341 | -#: print.c:907 ui/00default.xml:342 | |
1341 | +#: print.c:915 ui/00default.xml:342 | |
1342 | 1342 | msgid "Print settings" |
1343 | 1343 | msgstr "Configurações de impressão" |
1344 | 1344 | |
... | ... | @@ -1346,6 +1346,11 @@ msgstr "Configurações de impressão" |
1346 | 1346 | msgid "Progress" |
1347 | 1347 | msgstr "Progresso" |
1348 | 1348 | |
1349 | +#: ui/80javasamples.xml:90 | |
1350 | +#, fuzzy | |
1351 | +msgid "Protection test" | |
1352 | +msgstr "Exception test" | |
1353 | + | |
1349 | 1354 | #: colors.c:446 |
1350 | 1355 | msgid "Purple" |
1351 | 1356 | msgstr "Púrpura" |
... | ... | @@ -2082,7 +2087,7 @@ msgstr "Trilhas" |
2082 | 2087 | msgid "Transfer cancelled by host" |
2083 | 2088 | msgstr "Transferência cancelada pelo servidor" |
2084 | 2089 | |
2085 | -#: ft_cut.c:396 ft_cut.c:494 ft_dft.c:242 ft_dft.c:380 | |
2090 | +#: ft_cut.c:396 ft_cut.c:494 ft_dft.c:228 ft_dft.c:366 | |
2086 | 2091 | msgid "Transfer cancelled by user" |
2087 | 2092 | msgstr "Transferência cancelada pelo usuário" |
2088 | 2093 | |
... | ... | @@ -2106,7 +2111,7 @@ msgstr "Turquesa" |
2106 | 2111 | msgid "UTF-8" |
2107 | 2112 | msgstr "UTF-8" |
2108 | 2113 | |
2109 | -#: ft_dft.c:182 | |
2114 | +#: ft_dft.c:168 | |
2110 | 2115 | msgid "Uknown DFT Open type from host" |
2111 | 2116 | msgstr "Host enviou código de abertura DFT desconhecido" |
2112 | 2117 | |
... | ... | @@ -2232,7 +2237,7 @@ msgstr "Alvo inesperado \"%s\"" |
2232 | 2237 | msgid "Unexpected type %d in typeahead queue" |
2233 | 2238 | msgstr "Tipo inesperado %d na fila de teclado" |
2234 | 2239 | |
2235 | -#: ctlr.c:740 | |
2240 | +#: ctlr.c:758 | |
2236 | 2241 | #, c-format |
2237 | 2242 | msgid "Unknown 3270 Data Stream command: 0x%X" |
2238 | 2243 | msgstr "Unknown 3270 Data Stream command: 0x%X" |
... | ... | @@ -2326,47 +2331,47 @@ msgstr "Windows ocidental (CP1252)" |
2326 | 2331 | msgid "Windows error %d" |
2327 | 2332 | msgstr "Erro windows %d" |
2328 | 2333 | |
2329 | -#: v3270/oia.c:424 v3270/oia.c:448 v3270/oia.c:452 | |
2334 | +#: v3270/oia.c:432 v3270/oia.c:456 v3270/oia.c:460 | |
2330 | 2335 | msgid "X" |
2331 | 2336 | msgstr "X" |
2332 | 2337 | |
2333 | -#: v3270/oia.c:428 | |
2338 | +#: v3270/oia.c:436 | |
2334 | 2339 | msgid "X -f" |
2335 | 2340 | msgstr "X -f" |
2336 | 2341 | |
2337 | -#: v3270/oia.c:460 | |
2342 | +#: v3270/oia.c:468 | |
2338 | 2343 | msgid "X Connecting" |
2339 | 2344 | msgstr "X Conectando" |
2340 | 2345 | |
2341 | -#: v3270/oia.c:444 | |
2346 | +#: v3270/oia.c:452 | |
2342 | 2347 | msgid "X Inhibit" |
2343 | 2348 | msgstr "X Inibido" |
2344 | 2349 | |
2345 | -#: v3270/oia.c:420 | |
2350 | +#: v3270/oia.c:428 | |
2346 | 2351 | msgid "X Not Connected" |
2347 | 2352 | msgstr "X Desconectado" |
2348 | 2353 | |
2349 | -#: v3270/oia.c:436 | |
2354 | +#: v3270/oia.c:444 | |
2350 | 2355 | msgid "X Numeric" |
2351 | 2356 | msgstr "X Numérico" |
2352 | 2357 | |
2353 | -#: v3270/oia.c:440 | |
2358 | +#: v3270/oia.c:448 | |
2354 | 2359 | msgid "X Overflow" |
2355 | 2360 | msgstr "X Estouro" |
2356 | 2361 | |
2357 | -#: v3270/oia.c:432 | |
2362 | +#: v3270/oia.c:440 | |
2358 | 2363 | msgid "X Protected" |
2359 | 2364 | msgstr "X Protegido" |
2360 | 2365 | |
2361 | -#: v3270/oia.c:456 | |
2366 | +#: v3270/oia.c:464 | |
2362 | 2367 | msgid "X Resolving" |
2363 | 2368 | msgstr "X Resolvendo" |
2364 | 2369 | |
2365 | -#: v3270/oia.c:408 | |
2370 | +#: v3270/oia.c:416 | |
2366 | 2371 | msgid "X System" |
2367 | 2372 | msgstr "X Sistema" |
2368 | 2373 | |
2369 | -#: v3270/oia.c:412 | |
2374 | +#: v3270/oia.c:420 | |
2370 | 2375 | msgid "X Wait" |
2371 | 2376 | msgstr "X Aguarde" |
2372 | 2377 | |
... | ... | @@ -2407,7 +2412,7 @@ msgstr "_Editar" |
2407 | 2412 | msgid "_File" |
2408 | 2413 | msgstr "_Arquivo" |
2409 | 2414 | |
2410 | -#: print.c:413 | |
2415 | +#: print.c:421 | |
2411 | 2416 | msgid "_Font:" |
2412 | 2417 | msgstr "_Fonte:" |
2413 | 2418 | ... | ... |
... | ... | @@ -0,0 +1,213 @@ |
1 | +#!/bin/bash | |
2 | + | |
3 | +cleanup() | |
4 | +{ | |
5 | + # | |
6 | + # Apaga diretorio temporário caso o script seja interrompido | |
7 | + # | |
8 | + cd ${myDIR} | |
9 | + rm -fr ${TEMPDIR} | |
10 | + rm -fr ${RUNTIMEDIR} | |
11 | + rm -fr ${DESTDIR} | |
12 | + exit -1 | |
13 | +} | |
14 | + | |
15 | +failed() | |
16 | +{ | |
17 | + echo $1 | |
18 | + cleanup | |
19 | +} | |
20 | + | |
21 | +# | |
22 | +# Gera pacote windows | |
23 | +# | |
24 | +# $1 = Arquitetura (x86_32/x86_64) | |
25 | +# | |
26 | +build() | |
27 | +{ | |
28 | + echo -e "\e]2;pw3270-${1}\a" | |
29 | + | |
30 | + case ${1} in | |
31 | + x86_32) | |
32 | + host=i686-w64-mingw32 | |
33 | + nsi=pw3270-i686 | |
34 | + prefix=/usr/i686-w64-mingw32/sys-root/mingw | |
35 | + ;; | |
36 | + | |
37 | + x86_64) | |
38 | + host=x86_64-w64-mingw32 | |
39 | + nsi=pw3270-x86_64 | |
40 | + prefix=/usr/x86_64-w64-mingw32/sys-root/mingw | |
41 | + ;; | |
42 | + | |
43 | + | |
44 | + *) | |
45 | + failed "Arquitetura desconhecida: ${1}" | |
46 | + | |
47 | + esac | |
48 | + | |
49 | + ./configure \ | |
50 | + --cache-file=${1}.cache \ | |
51 | + --host=${host} \ | |
52 | + --prefix=${prefix} \ | |
53 | + --disable-java | |
54 | + | |
55 | + if [ "$?" != "0" ]; then | |
56 | + failed "Erro ao configurar" | |
57 | + fi | |
58 | + | |
59 | + make clean | |
60 | + rm -f *.exe | |
61 | + | |
62 | + make Release | |
63 | + if [ "$?" != "0" ]; then | |
64 | + failed "Erro ao compilar fontes" | |
65 | + fi | |
66 | + | |
67 | + make package | |
68 | + if [ "$?" != "0" ]; then | |
69 | + failed "Erro ao gerar instalador" | |
70 | + fi | |
71 | + | |
72 | + mkdir -p ${DESTDIR}/${1} | |
73 | + | |
74 | + cp *.exe ${DESTDIR}/${1} | |
75 | + if [ "$?" != "0" ]; then | |
76 | + failed "Erro ao copiar instalador" | |
77 | + fi | |
78 | + | |
79 | + make clean | |
80 | + rm -f *.exe | |
81 | + | |
82 | +} | |
83 | + | |
84 | +myDIR=$(readlink -f $(dirname $0)) | |
85 | +TEMPDIR=$(mktemp -d) | |
86 | +DESTDIR=${HOME}/public_html/win | |
87 | +RUNTIMEDIR=$(mktemp -d) | |
88 | +SRC=svn | |
89 | +ARCHS="x86_32 x86_64" | |
90 | +RUNTIME=0 | |
91 | +COMPLETE=1 | |
92 | + | |
93 | +trap cleanup INT | |
94 | + | |
95 | +until [ -z "$1" ] | |
96 | +do | |
97 | + if [ ${1:0:2} = '--' ]; then | |
98 | + tmp=${1:2} | |
99 | + parameter=${tmp%%=*} | |
100 | + parameter=$(echo $parameter | tr "[:lower:]" "[:upper:]") | |
101 | + | |
102 | + case $parameter in | |
103 | + | |
104 | + SRC) | |
105 | + value=${tmp##*=} | |
106 | + eval SRC=$value | |
107 | + ;; | |
108 | + | |
109 | + FULL) | |
110 | + RUNTIME=0 | |
111 | + COMPLETE=1 | |
112 | + ;; | |
113 | + | |
114 | + RT) | |
115 | + RUNTIME=1 | |
116 | + COMPLETE=0 | |
117 | + ;; | |
118 | + | |
119 | + OUT) | |
120 | + DESTDIR=$value | |
121 | + ;; | |
122 | + | |
123 | + ARCH) | |
124 | + value=${tmp##*=} | |
125 | + ARCHS=$value | |
126 | + ;; | |
127 | + | |
128 | + *) | |
129 | + value=${tmp##*=} | |
130 | + eval $parameter=$value | |
131 | + esac | |
132 | + | |
133 | + fi | |
134 | + | |
135 | + shift | |
136 | +done | |
137 | + | |
138 | +# Gera pacotes | |
139 | +for i in ${ARCHS}; do | |
140 | + | |
141 | + if [ "${COMPLETE}" == "1" ]; then | |
142 | + build "${i}" | |
143 | + fi | |
144 | + | |
145 | +# if [ "${RUNTIME}" == "1" ]; then | |
146 | +# build "${i}" | |
147 | +# fi | |
148 | + | |
149 | + | |
150 | +done | |
151 | + | |
152 | +if [ "${RUNTIME}" == "1" ]; then | |
153 | + | |
154 | + echo -e "\e]2;Baixando runtime\a" | |
155 | + | |
156 | + # | |
157 | + # Puxo scripts de construção do GTK direto da sourceforge. | |
158 | + # | |
159 | + cd ${RUNTIMEDIR} | |
160 | + git clone http://git.code.sf.net/p/gtk3win/code . | |
161 | + if [ "$?" != "0" ]; then | |
162 | + exit -1 | |
163 | + fi | |
164 | + | |
165 | + for i in ${ARCHS}; do | |
166 | + | |
167 | + rm -f *.exe | |
168 | + | |
169 | + echo -e "\e]2;gtk-runtime-${i}\a" | |
170 | + | |
171 | + case ${i} in | |
172 | + x86_32) | |
173 | + ./win32.sh | |
174 | + if [ "$?" != "0" ]; then | |
175 | + exit -1 | |
176 | + fi | |
177 | + ;; | |
178 | + | |
179 | + x86_64) | |
180 | + ./win64.sh | |
181 | + if [ "$?" != "0" ]; then | |
182 | + exit -1 | |
183 | + fi | |
184 | + ;; | |
185 | + | |
186 | + *) | |
187 | + echo "Arquitetura desconhecida ${i}" | |
188 | + exit -1 | |
189 | + | |
190 | + esac | |
191 | + | |
192 | + chmod +x ./makeruntime.sh | |
193 | + | |
194 | + ./makeruntime.sh | |
195 | + if [ "$?" != "0" ]; then | |
196 | + exit -1 | |
197 | + fi | |
198 | + | |
199 | + cp *.exe ${DESTDIR}/${i} | |
200 | + if [ "$?" != "0" ]; then | |
201 | + failed "Erro ao copiar instalador" | |
202 | + fi | |
203 | + | |
204 | + done | |
205 | + | |
206 | +fi | |
207 | + | |
208 | +cd $myDIR | |
209 | +rm -fr ${TEMPDIR} | |
210 | +rm -fr ${RUNTIMEDIR} | |
211 | + | |
212 | + | |
213 | + | ... | ... |