Commit 61d59251fbc96c707bff3fc9bb86c83581fe526b
1 parent
7df57bca
Exists in
develop
Working on windows package.
Showing
6 changed files
with
58 additions
and
60 deletions
Show diff stats
locale/pt_BR.po
| @@ -5,7 +5,7 @@ msgid "" | @@ -5,7 +5,7 @@ msgid "" | ||
| 5 | msgstr "" | 5 | msgstr "" |
| 6 | "Project-Id-Version: pw3270 5.0\n" | 6 | "Project-Id-Version: pw3270 5.0\n" |
| 7 | "Report-Msgid-Bugs-To: \n" | 7 | "Report-Msgid-Bugs-To: \n" |
| 8 | -"POT-Creation-Date: 2023-03-22 07:20-0300\n" | 8 | +"POT-Creation-Date: 2023-03-25 08:48-0300\n" |
| 9 | "PO-Revision-Date: 2023-01-31 11:14-0300\n" | 9 | "PO-Revision-Date: 2023-01-31 11:14-0300\n" |
| 10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" | 10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" |
| 11 | "Language-Team: Brazilian Portuguese <perry.werneck@gmail.com>\n" | 11 | "Language-Team: Brazilian Portuguese <perry.werneck@gmail.com>\n" |
| @@ -474,7 +474,7 @@ msgstr "Altura do painel em linhas" | @@ -474,7 +474,7 @@ msgstr "Altura do painel em linhas" | ||
| 474 | msgid "Keypad width in columns" | 474 | msgid "Keypad width in columns" |
| 475 | msgstr "Largura do painel em colunas" | 475 | msgstr "Largura do painel em colunas" |
| 476 | 476 | ||
| 477 | -#: src/main/builder.c:112 | 477 | +#: src/main/builder.c:137 |
| 478 | msgid "Keypads" | 478 | msgid "Keypads" |
| 479 | msgstr "Painéis" | 479 | msgstr "Painéis" |
| 480 | 480 |
locale/pw3270.pot
| @@ -8,7 +8,7 @@ msgid "" | @@ -8,7 +8,7 @@ msgid "" | ||
| 8 | msgstr "" | 8 | msgstr "" |
| 9 | "Project-Id-Version: PACKAGE VERSION\n" | 9 | "Project-Id-Version: PACKAGE VERSION\n" |
| 10 | "Report-Msgid-Bugs-To: \n" | 10 | "Report-Msgid-Bugs-To: \n" |
| 11 | -"POT-Creation-Date: 2023-03-22 07:20-0300\n" | 11 | +"POT-Creation-Date: 2023-03-25 08:48-0300\n" |
| 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | 13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 14 | "Language-Team: LANGUAGE <LL@li.org>\n" | 14 | "Language-Team: LANGUAGE <LL@li.org>\n" |
| @@ -470,7 +470,7 @@ msgstr "" | @@ -470,7 +470,7 @@ msgstr "" | ||
| 470 | msgid "Keypad width in columns" | 470 | msgid "Keypad width in columns" |
| 471 | msgstr "" | 471 | msgstr "" |
| 472 | 472 | ||
| 473 | -#: src/main/builder.c:112 | 473 | +#: src/main/builder.c:137 |
| 474 | msgid "Keypads" | 474 | msgid "Keypads" |
| 475 | msgstr "" | 475 | msgstr "" |
| 476 | 476 |
src/main/main.c
| 1 | +/* SPDX-License-Identifier: LGPL-3.0-or-later */ | ||
| 2 | + | ||
| 1 | /* | 3 | /* |
| 2 | - * "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | ||
| 3 | - * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | ||
| 4 | - * aplicativos mainframe. Registro no INPI sob o nome G3270. Registro no INPI sob | ||
| 5 | - * o nome G3270. | ||
| 6 | - * | ||
| 7 | * Copyright (C) <2008> <Banco do Brasil S.A.> | 4 | * Copyright (C) <2008> <Banco do Brasil S.A.> |
| 8 | * | 5 | * |
| 9 | - * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob | ||
| 10 | - * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela | ||
| 11 | - * Free Software Foundation. | ||
| 12 | - * | ||
| 13 | - * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER | ||
| 14 | - * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO | ||
| 15 | - * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | ||
| 16 | - * obter mais detalhes. | ||
| 17 | - * | ||
| 18 | - * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este | ||
| 19 | - * programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin | ||
| 20 | - * St, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 21 | - * | ||
| 22 | - * Este programa está nomeado como main.c e possui - linhas de código. | ||
| 23 | - * | ||
| 24 | - * Contatos: | 6 | + * This program is free software: you can redistribute it and/or modify |
| 7 | + * it under the terms of the GNU Lesser General Public License as published | ||
| 8 | + * by the Free Software Foundation, either version 3 of the License, or | ||
| 9 | + * (at your option) any later version. | ||
| 25 | * | 10 | * |
| 26 | - * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | ||
| 27 | - * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) | 11 | + * This program is distributed in the hope that it will be useful, |
| 12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | + * GNU General Public License for more details. | ||
| 28 | * | 15 | * |
| 16 | + * You should have received a copy of the GNU Lesser General Public License | ||
| 17 | + * along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
| 29 | */ | 18 | */ |
| 30 | 19 | ||
| 31 | /** | 20 | /** |
src/main/tools.c
| 1 | +/* SPDX-License-Identifier: LGPL-3.0-or-later */ | ||
| 2 | + | ||
| 1 | /* | 3 | /* |
| 2 | - * "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | ||
| 3 | - * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | ||
| 4 | - * aplicativos mainframe. Registro no INPI sob o nome G3270. Registro no INPI sob | ||
| 5 | - * o nome G3270. | ||
| 6 | - * | ||
| 7 | * Copyright (C) <2008> <Banco do Brasil S.A.> | 4 | * Copyright (C) <2008> <Banco do Brasil S.A.> |
| 8 | * | 5 | * |
| 9 | - * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob | ||
| 10 | - * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela | ||
| 11 | - * Free Software Foundation. | ||
| 12 | - * | ||
| 13 | - * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER | ||
| 14 | - * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO | ||
| 15 | - * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | ||
| 16 | - * obter mais detalhes. | ||
| 17 | - * | ||
| 18 | - * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este | ||
| 19 | - * programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin | ||
| 20 | - * St, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 21 | - * | ||
| 22 | - * Este programa está nomeado como main.c e possui - linhas de código. | ||
| 23 | - * | ||
| 24 | - * Contatos: | 6 | + * This program is free software: you can redistribute it and/or modify |
| 7 | + * it under the terms of the GNU Lesser General Public License as published | ||
| 8 | + * by the Free Software Foundation, either version 3 of the License, or | ||
| 9 | + * (at your option) any later version. | ||
| 25 | * | 10 | * |
| 26 | - * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | ||
| 27 | - * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) | 11 | + * This program is distributed in the hope that it will be useful, |
| 12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | + * GNU General Public License for more details. | ||
| 28 | * | 15 | * |
| 16 | + * You should have received a copy of the GNU Lesser General Public License | ||
| 17 | + * along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
| 29 | */ | 18 | */ |
| 30 | 19 | ||
| 31 | /** | 20 | /** |
win/makeruntime.sh.in
| @@ -216,7 +216,7 @@ install_schemas() { | @@ -216,7 +216,7 @@ install_schemas() { | ||
| 216 | fi | 216 | fi |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | -install_theme() { | 219 | +install_icons() { |
| 220 | 220 | ||
| 221 | mkdir -p "${buildroot}${prefix}/etc" | 221 | mkdir -p "${buildroot}${prefix}/etc" |
| 222 | cp -rv "${prefix}/etc/gtk-3.0" "${buildroot}${prefix}/etc" | 222 | cp -rv "${prefix}/etc/gtk-3.0" "${buildroot}${prefix}/etc" |
| @@ -244,15 +244,25 @@ install_theme() { | @@ -244,15 +244,25 @@ install_theme() { | ||
| 244 | exit -1 | 244 | exit -1 |
| 245 | fi | 245 | fi |
| 246 | 246 | ||
| 247 | - #echo "${srcdir}/gtk.css" | ||
| 248 | - #if [ -e "${srcdir}/gtk.css" ]; then | ||
| 249 | - # cp "${srcdir}/gtk.css" "${TARGET}/share/themes/Default/gtk-3.0/gtk.css" | ||
| 250 | - #fi | 247 | + if [ -e "${srcdir}/win/gtk.css" ]; then |
| 248 | + mkdir -p "${buildroot}${prefix}/share/themes/Default/gtk-3.0" | ||
| 249 | + cp "${srcdir}/win/gtk.css" "${buildroot}${prefix}/share/themes/Default/gtk-3.0/gtk.css" | ||
| 250 | + fi | ||
| 251 | 251 | ||
| 252 | } | 252 | } |
| 253 | 253 | ||
| 254 | +install_theme() { | ||
| 255 | + cp -rv /usr/share/icons/${1} ${buildroot}${prefix}/share/icons | ||
| 256 | + if [ "$?" != 0 ]; then | ||
| 257 | + echo "Can´t copy ${1} icons" | ||
| 258 | + exit -1 | ||
| 259 | + fi | ||
| 260 | +} | ||
| 261 | + | ||
| 254 | install_bin | 262 | install_bin |
| 255 | install_locale | 263 | install_locale |
| 256 | install_schemas | 264 | install_schemas |
| 257 | -install_theme | 265 | +install_icons |
| 266 | +install_theme "Adwaita" | ||
| 267 | + | ||
| 258 | 268 |
wine-run.sh
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | 2 | ||
| 3 | -make Debug | ||
| 4 | -make gschemas.compiled | 3 | +make DESTDIR=${PWD}/.build install |
| 4 | +if [ "$?" != "0" ]; then | ||
| 5 | + exit -1 | ||
| 6 | +fi | ||
| 7 | + | ||
| 8 | +bash ./win/makeruntime.sh | ||
| 9 | +if [ "$?" != "0" ]; then | ||
| 10 | + exit -1 | ||
| 11 | +fi | ||
| 12 | + | ||
| 13 | +wine .build/usr/x86_64-w64-mingw32/sys-root/mingw/bin/pw3270.exe | ||
| 14 | +if [ "$?" != "0" ]; then | ||
| 15 | + exit -1 | ||
| 16 | +fi | ||
| 5 | 17 | ||
| 6 | -cp gschemas.compiled .bin/Debug | ||
| 7 | 18 | ||
| 8 | -wine .bin/Debug/pw3270.exe | ||
| 9 | 19 |