Commit a62a5b993b95af2c90ca8ff825b590454ed7a824
1 parent
8383dce1
Exists in
master
and in
5 other branches
Incluindo loaders gtk
Showing
2 changed files
with
167 additions
and
94 deletions
Show diff stats
locale/pw3270.pot
| ... | ... | @@ -9,7 +9,7 @@ msgstr "" |
| 9 | 9 | "#-#-#-#-# lib3270.pot (PACKAGE VERSION) #-#-#-#-#\n" |
| 10 | 10 | "Project-Id-Version: PACKAGE VERSION\n" |
| 11 | 11 | "Report-Msgid-Bugs-To: \n" |
| 12 | -"POT-Creation-Date: 2017-04-05 16:26-0300\n" | |
| 12 | +"POT-Creation-Date: 2017-04-06 13:17-0300\n" | |
| 13 | 13 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 14 | 14 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 15 | 15 | "Language-Team: LANGUAGE <LL@li.org>\n" |
| ... | ... | @@ -20,7 +20,7 @@ msgstr "" |
| 20 | 20 | "#-#-#-#-# pw3270.pot (PACKAGE VERSION) #-#-#-#-#\n" |
| 21 | 21 | "Project-Id-Version: PACKAGE VERSION\n" |
| 22 | 22 | "Report-Msgid-Bugs-To: \n" |
| 23 | -"POT-Creation-Date: 2017-04-05 16:26-0300\n" | |
| 23 | +"POT-Creation-Date: 2017-04-06 13:17-0300\n" | |
| 24 | 24 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 25 | 25 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 26 | 26 | "Language-Team: LANGUAGE <LL@li.org>\n" | ... | ... |
win/makeruntime.sh
| 1 | 1 | #!/bin/bash |
| 2 | +# | |
| 3 | +# "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | |
| 4 | +# (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | |
| 5 | +# aplicativos mainframe. Registro no INPI sob o nome G3270. | |
| 6 | +# | |
| 7 | +# Copyright (C) <2008> <Banco do Brasil S.A.> | |
| 8 | +# | |
| 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., 59 Temple | |
| 20 | +# Place, Suite 330, Boston, MA, 02111-1307, USA | |
| 21 | +# | |
| 22 | +# Contatos: | |
| 23 | +# | |
| 24 | +# perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | |
| 25 | +# erico.mendonca@gmail.com (Erico Mascarenhas de Mendonça) | |
| 26 | +# | |
| 27 | + | |
| 28 | + | |
| 2 | 29 | myDIR=$(dirname $(readlink -f $0)) |
| 3 | 30 | |
| 4 | 31 | prefix="/usr/i686-w64-mingw32/sys-root/mingw" |
| ... | ... | @@ -6,6 +33,7 @@ PKG_CONFIG="/usr/bin/i686-w64-mingw32-pkg-config" |
| 6 | 33 | GTK_VERSION="gtk+-3.0" |
| 7 | 34 | |
| 8 | 35 | GTK_PREFIX=$($PKG_CONFIG --variable=prefix ${GTK_VERSION}) |
| 36 | +GDK_LOADERS=$(${PKG_CONFIG} --variable=gdk_pixbuf_binarydir gdk-pixbuf-2.0 | sed -e "s@${prefix}@@g") | |
| 9 | 37 | |
| 10 | 38 | TARGET="$(dirname ${myDIR})/.bin/runtime" |
| 11 | 39 | |
| ... | ... | @@ -13,112 +41,157 @@ TARGET="$(dirname ${myDIR})/.bin/runtime" |
| 13 | 41 | mkdir -p ${TARGET} |
| 14 | 42 | rm -fr ${TARGET}/* |
| 15 | 43 | |
| 16 | -AGAIN=1 | |
| 17 | -until [ $AGAIN = 0 ]; do | |
| 18 | - | |
| 19 | - SOURCES=$(mktemp) | |
| 20 | - REQUIRES=$(mktemp) | |
| 21 | - | |
| 22 | - find "$(dirname ${myDIR})/.bin/Release/" -iname "*.dll" > ${SOURCES} | |
| 23 | - find "$(dirname ${myDIR})/.bin/Release/" -iname "*.exe" >> ${SOURCES} | |
| 24 | - find "${TARGET}" -iname *.dll >> ${SOURCES} | |
| 25 | - | |
| 26 | - while read FILENAME | |
| 27 | - do | |
| 28 | - objdump -p ${FILENAME} | grep "DLL Name:" | cut -d: -f2 | tr "[:upper:]" "[:lower:]" >> ${REQUIRES} | |
| 29 | - done < ${SOURCES} | |
| 30 | - | |
| 31 | - libs_to_exclude=" | |
| 32 | - advapi32 | |
| 33 | - cfgmgr32 | |
| 34 | - comctl32 | |
| 35 | - comdlg32 | |
| 36 | - crypt32 | |
| 37 | - d3d8 | |
| 38 | - d3d9 | |
| 39 | - ddraw | |
| 40 | - dnsapi | |
| 41 | - dsound | |
| 42 | - dwmapi | |
| 43 | - gdi32 | |
| 44 | - gdiplus | |
| 45 | - glu32 | |
| 46 | - glut32 | |
| 47 | - imm32 | |
| 48 | - iphlpapi | |
| 49 | - kernel32 | |
| 50 | - ksuser | |
| 51 | - mpr | |
| 52 | - mscms | |
| 53 | - mscoree | |
| 54 | - msimg32 | |
| 55 | - msvcr71 | |
| 56 | - msvcr80 | |
| 57 | - msvcr90 | |
| 58 | - msvcrt | |
| 59 | - mswsock | |
| 60 | - netapi32 | |
| 61 | - odbc32 | |
| 62 | - ole32 | |
| 63 | - oleacc | |
| 64 | - oleaut32 | |
| 65 | - opengl32 | |
| 66 | - psapi | |
| 67 | - rpcrt4 | |
| 68 | - secur32 | |
| 69 | - setupapi | |
| 70 | - shell32 | |
| 71 | - shlwapi | |
| 72 | - user32 | |
| 73 | - usp10 | |
| 74 | - version | |
| 75 | - wininet | |
| 76 | - winmm | |
| 77 | - wldap32 | |
| 78 | - ws2_32 | |
| 79 | - wsock32 | |
| 80 | - winspool.drv | |
| 81 | - " | |
| 44 | +copy_dll() { | |
| 45 | + | |
| 46 | + AGAIN=1 | |
| 47 | + until [ $AGAIN = 0 ]; do | |
| 48 | + | |
| 49 | + SOURCES=$(mktemp) | |
| 50 | + REQUIRES=$(mktemp) | |
| 51 | + | |
| 52 | + find "$(dirname ${myDIR})/.bin/Release/" -iname "*.dll" > ${SOURCES} | |
| 53 | + find "$(dirname ${myDIR})/.bin/Release/" -iname "*.exe" >> ${SOURCES} | |
| 54 | + find "${TARGET}" -iname *.dll >> ${SOURCES} | |
| 55 | + | |
| 56 | + while read FILENAME | |
| 57 | + do | |
| 58 | + objdump -p ${FILENAME} | grep "DLL Name:" | cut -d: -f2 | tr "[:upper:]" "[:lower:]" >> ${REQUIRES} | |
| 59 | + done < ${SOURCES} | |
| 60 | + | |
| 61 | + libs_to_exclude=" | |
| 62 | + advapi32 | |
| 63 | + cfgmgr32 | |
| 64 | + comctl32 | |
| 65 | + comdlg32 | |
| 66 | + crypt32 | |
| 67 | + d3d8 | |
| 68 | + d3d9 | |
| 69 | + ddraw | |
| 70 | + dnsapi | |
| 71 | + dsound | |
| 72 | + dwmapi | |
| 73 | + gdi32 | |
| 74 | + gdiplus | |
| 75 | + glu32 | |
| 76 | + glut32 | |
| 77 | + imm32 | |
| 78 | + iphlpapi | |
| 79 | + kernel32 | |
| 80 | + ksuser | |
| 81 | + mpr | |
| 82 | + mscms | |
| 83 | + mscoree | |
| 84 | + msimg32 | |
| 85 | + msvcr71 | |
| 86 | + msvcr80 | |
| 87 | + msvcr90 | |
| 88 | + msvcrt | |
| 89 | + mswsock | |
| 90 | + netapi32 | |
| 91 | + odbc32 | |
| 92 | + ole32 | |
| 93 | + oleacc | |
| 94 | + oleaut32 | |
| 95 | + opengl32 | |
| 96 | + psapi | |
| 97 | + rpcrt4 | |
| 98 | + secur32 | |
| 99 | + setupapi | |
| 100 | + shell32 | |
| 101 | + shlwapi | |
| 102 | + user32 | |
| 103 | + usp10 | |
| 104 | + version | |
| 105 | + wininet | |
| 106 | + winmm | |
| 107 | + wldap32 | |
| 108 | + ws2_32 | |
| 109 | + wsock32 | |
| 110 | + winspool.drv | |
| 111 | + " | |
| 112 | + | |
| 113 | + # Excluo DLLs do sistema | |
| 114 | + for i in $libs_to_exclude; do | |
| 115 | + sed -i -e "/${i}/d" ${REQUIRES} | |
| 116 | + done | |
| 117 | + | |
| 118 | + # Procuro pelas DLLs que faltam | |
| 119 | + AGAIN=0 | |
| 120 | + while read FILENAME | |
| 121 | + do | |
| 122 | + if [ ! -e "${TARGET}/${FILENAME}" ]; then | |
| 123 | + | |
| 124 | + COUNT=$(find "$(dirname ${myDIR})/.bin/Release/" -iname ${FILENAME} | wc --lines) | |
| 125 | + if [ "${COUNT}" == "0" ]; then | |
| 126 | + | |
| 127 | + if [ -e ${prefix}/bin/${FILENAME} ]; then | |
| 128 | + | |
| 129 | + echo "Copiando $(basename ${FILENAME})..." | |
| 130 | + | |
| 131 | + AGAIN=1 | |
| 132 | + cp -v "${prefix}/bin/${FILENAME}" "${TARGET}/${FILENAME}" | |
| 133 | + if [ "$?" != "0" ]; then | |
| 134 | + exit -1 | |
| 135 | + fi | |
| 136 | + else | |
| 137 | + | |
| 138 | + echo "Can't find ${FILENAME}" | |
| 82 | 139 | |
| 83 | - # Excluo DLLs do sistema | |
| 84 | - for i in $libs_to_exclude; do | |
| 85 | - sed -i -e "/${i}/d" ${REQUIRES} | |
| 86 | - done | |
| 140 | + fi | |
| 87 | 141 | |
| 88 | - # Procuro pelas DLLs que faltam | |
| 89 | - AGAIN=0 | |
| 90 | - while read FILENAME | |
| 91 | - do | |
| 92 | - if [ ! -e "${TARGET}/${FILENAME}" ]; then | |
| 142 | + fi | |
| 93 | 143 | |
| 94 | - COUNT=$(find "$(dirname ${myDIR})/.bin/Release/" -iname ${FILENAME} | wc --lines) | |
| 95 | - if [ "${COUNT}" == "0" ]; then | |
| 96 | 144 | |
| 97 | - if [ -e ${prefix}/bin/${FILENAME} ]; then | |
| 145 | + fi | |
| 98 | 146 | |
| 99 | - echo "Copiando $(basename ${FILENAME})..." | |
| 147 | + done < ${REQUIRES} | |
| 100 | 148 | |
| 101 | - AGAIN=1 | |
| 102 | - cp -v "${prefix}/bin/${FILENAME}" "${TARGET}/${FILENAME}" | |
| 103 | - if [ "$?" != "0" ]; then | |
| 104 | - exit -1 | |
| 105 | - fi | |
| 106 | - else | |
| 149 | + rm -f ${SOURCES} | |
| 150 | + rm -f ${REQUIRES} | |
| 107 | 151 | |
| 108 | - echo "Can't find ${FILENAME}" | |
| 152 | + done | |
| 109 | 153 | |
| 110 | - fi | |
| 154 | +} | |
| 111 | 155 | |
| 112 | - fi | |
| 156 | +copy_locale() { | |
| 113 | 157 | |
| 158 | + rm -fr ${TARGET}/share/locale/pt_BR/LC_MESSAGES | |
| 159 | + mkdir -p ${TARGET}/share/locale/pt_BR/LC_MESSAGES | |
| 160 | + | |
| 161 | + locales=" | |
| 162 | + gettext-runtime.mo | |
| 163 | + gettext-tools.mo | |
| 164 | + glib20.mo | |
| 165 | + gtk30.mo | |
| 166 | + gtk30-properties.mo | |
| 167 | + " | |
| 114 | 168 | |
| 169 | + for i in $locales; do | |
| 170 | + if [ -e "${GTK_PREFIX}/share/locale/pt_BR/LC_MESSAGES/${i}" ]; then | |
| 171 | + echo "${GTK_PREFIX}/share/locale/pt_BR/LC_MESSAGES/${i} ..." | |
| 172 | + cp "${GTK_PREFIX}/share/locale/pt_BR/LC_MESSAGES/${i}" "${TARGET}/share/locale/pt_BR/LC_MESSAGES" | |
| 173 | + if [ "$?" != "0" ]; then | |
| 174 | + exit -1 | |
| 175 | + fi | |
| 115 | 176 | fi |
| 177 | + done | |
| 178 | + | |
| 179 | +} | |
| 180 | + | |
| 181 | +copy_loaders() { | |
| 116 | 182 | |
| 117 | - done < ${REQUIRES} | |
| 183 | + mkdir -p "${TARGET}/${GDK_LOADERS}" | |
| 184 | + cp -rv "${prefix}/${GDK_LOADERS}/loaders" "${TARGET}/${GDK_LOADERS}" | |
| 185 | + if [ "$?" != "0" ]; then | |
| 186 | + exit -1 | |
| 187 | + fi | |
| 118 | 188 | |
| 119 | - rm -f ${SOURCES} | |
| 120 | - rm -f ${REQUIRES} | |
| 189 | +} | |
| 121 | 190 | |
| 122 | -done | |
| 191 | +copy_dll | |
| 192 | +copy_locale | |
| 193 | +copy_loaders | |
| 123 | 194 | |
| 195 | +echo ${GDK_LOADERS} | |
| 124 | 196 | |
| 197 | +echo "Runtime ok" | ... | ... |