From 371f6465b67a48312c994b14177d90e25f73f280 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Fri, 7 Apr 2023 13:24:41 -0300 Subject: [PATCH] Removing unused files. --- win/building_on_windows-the-hard-way.txt | 24 ------------------------ win/building_windows_on_SuSE-the-easy-way.txt | 22 ---------------------- win/copydeps.sh.in | 133 ------------------------------------------------------------------------------------------------------------------------------------- win/force_inet_ntop.patch | 11 ----------- win/msys2-install-tn3270-libs.sh | 72 ------------------------------------------------------------------------ win/win32-configure | 37 ------------------------------------- win/win64-configure | 33 --------------------------------- 7 files changed, 0 insertions(+), 332 deletions(-) delete mode 100644 win/building_on_windows-the-hard-way.txt delete mode 100644 win/building_windows_on_SuSE-the-easy-way.txt delete mode 100755 win/copydeps.sh.in delete mode 100644 win/force_inet_ntop.patch delete mode 100644 win/msys2-install-tn3270-libs.sh delete mode 100755 win/win32-configure delete mode 100755 win/win64-configure diff --git a/win/building_on_windows-the-hard-way.txt b/win/building_on_windows-the-hard-way.txt deleted file mode 100644 index 44ae79e..0000000 --- a/win/building_on_windows-the-hard-way.txt +++ /dev/null @@ -1,24 +0,0 @@ - - 1. Instalar o mingw e o pacote básico do msys ( http://www.mingw.org/wiki/Getting_Started ) - - 2. Abrir o shell mingw e executar (não é o cmd normal do windows, o ícone fica no menu do mingw). - . mingw-get install autotools - . mingw-get install gettext - . mingw-get install msys-openssl - . mingw-get install msys-libopenssl - - 3. Instalar o tortoise SVN ( http://tortoisesvn.net/downloads.html ) - - 4. Instalar o pacote completo do gtk - . Baixar o bundle em http://www.gtk.org/download/win32.php - . Descompactar o bundle em c:\mingw - - 5. Abrir uma linha de comando do mingw (não é o cmd normal do windows - . Mudar para o diretório dos fontes (PS: usei o tortoise svn para baixar os arquivos) - - 6. Executar ./autogen.sh (atente para o lado da barra, é "/" mesmo já que o prompt do mingw é um bash - . Vai dar alguns error relacionados a linguagem; não me preocupei com eles nessa etapa. - - 7. Executar ./configure - Ele vai dar falta da libssl porque, por algum motivo, a libssl do mingw4windows não se registra no pkg-config - - 8. Executar make diff --git a/win/building_windows_on_SuSE-the-easy-way.txt b/win/building_windows_on_SuSE-the-easy-way.txt deleted file mode 100644 index f7fcace..0000000 --- a/win/building_windows_on_SuSE-the-easy-way.txt +++ /dev/null @@ -1,22 +0,0 @@ - -The proposal of this document is to show how to build pw3270 installers for windows using the cross-compilers available on SuSE linux. - -1. First install the MinGW Repositories to your SuSE version from: - - * 32 bits: https://build.opensuse.org/project/show/windows:mingw:win32 - * 64 bits: https://build.opensuse.org/project/show/windows:mingw:win64 - -2. Get pw3270 sources from git - - * git clone http://softwarepublico.gov.br/gitlab/pw3270/principal.git ./pw3270 - -3. Install cross compilers - - * ./pw3270/win/install-cross.sh --all - - -4. Build pw3270 windows installers - - * cd pw3270/ && ./win/pack.sh - - diff --git a/win/copydeps.sh.in b/win/copydeps.sh.in deleted file mode 100755 index deda5e6..0000000 --- a/win/copydeps.sh.in +++ /dev/null @@ -1,133 +0,0 @@ -#!/bin/bash -myDIR=$(dirname $(readlink -f $0)) - -# Updated by ./configure -BUILDDIR=@BUILDDIR@ -prefix=@prefix@ - -# Crio diretório temporário -TEMPDIR=$(mktemp -d) - -# Cleanup em caso de falha -ontrap() -{ - # - # Apaga diretorio temporário caso o script seja interrompido - # - cd ${myDIR} - rm -fr ${TEMPDIR} - exit -1 -} - -trap ontrap INT - -# -# Lista de DLLs a ignorar -# -libs_to_exclude=" - advapi32 - cfgmgr32 - comctl32 - comdlg32 - crypt32 - d3d8 - d3d9 - ddraw - dnsapi - dsound - dwmapi - gdi32 - gdiplus - glu32 - glut32 - imm32 - iphlpapi - kernel32 - ksuser - mpr - mscms - mscoree - msimg32 - msvcr71 - msvcr80 - msvcr90 - msvcrt - mswsock - netapi32 - odbc32 - ole32 - oleacc - oleaut32 - opengl32 - psapi - rpcrt4 - secur32 - setupapi - shell32 - shlwapi - user32 - usp10 - version - wininet - winmm - wldap32 - ws2_32 - wsock32 - winspool.drv -" - -# -# Fico em loop montando dependências -# -APPLICATION_PATH=${BUILDDIR}/.bin/Release -RUNTIME_PATH=${BUILDDIR}/.bin/runtime - -mkdir -p ${RUNTIME_PATH} - -AGAIN=1 -until [ $AGAIN = 0 ]; do - - AGAIN=0 - - find ${APPLICATION_PATH} -iname *.exe > ${TEMPDIR}/binaries.txt - find ${APPLICATION_PATH} -iname *.dll >> ${TEMPDIR}/binaries.txt - find ${RUNTIME_PATH} -iname *.dll >> ${TEMPDIR}/binaries.txt - - # Obtenho a lista de DLLs - rm -f ${TEMPDIR}/requires.txt - touch ${TEMPDIR}/requires.txt - while read FILENAME - do - objdump -p ${FILENAME} | grep "DLL Name:" | cut -d: -f2 | tr "[:upper:]" "[:lower:]" >> ${TEMPDIR}/requires.txt - done < ${TEMPDIR}/binaries.txt - - # Excluo DLLs do sistema - for i in $libs_to_exclude; do - sed -i -e "/${i}/d" ${TEMPDIR}/requires.txt - done - - while read FILENAME - do - - if [ -e ${APPLICATION_PATH}/${FILENAME} ]; then - touch ${APPLICATION_PATH}/${FILENAME} - - elif [ -e ${RUNTIME_PATH}/${FILENAME} ]; then - touch ${RUNTIME_PATH}/${FILENAME} - - elif [ -e ${prefix}/bin/${FILENAME} ]; then - AGAIN=1 - echo ${prefix}/bin/${FILENAME} - cp ${prefix}/bin/${FILENAME} ${RUNTIME_PATH} - - fi - - done < ${TEMPDIR}/requires.txt - rm -f ${TEMPDIR}/requires.txt - - -done - -cd ${myDIR} -rm -fr ${TEMPDIR} - diff --git a/win/force_inet_ntop.patch b/win/force_inet_ntop.patch deleted file mode 100644 index af41705..0000000 --- a/win/force_inet_ntop.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- src/include/lib3270/config.h.in 2017-01-20 15:37:46.462843502 -0200 -+++ src/include/lib3270/config.h.in 2017-01-24 15:19:45.547022420 -0200 -@@ -44,7 +44,7 @@ - #undef HAVE_SYSLOG - #undef HAVE_DBUS - #undef HAVE_VASPRINTF -- #undef HAVE_INET_NTOP -+ #define HAVE_INET_NTOP - - #undef HAVE_ICONV - #undef ICONV_CONST diff --git a/win/msys2-install-tn3270-libs.sh b/win/msys2-install-tn3270-libs.sh deleted file mode 100644 index 9459dda..0000000 --- a/win/msys2-install-tn3270-libs.sh +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/bash -# -# "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 -# (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a -# aplicativos mainframe. Registro no INPI sob o nome G3270. -# -# Copyright (C) <2008> -# -# Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob -# os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela -# Free Software Foundation. -# -# Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER -# GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO -# A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para -# obter mais detalhes. -# -# Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este -# programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin -# St, Fifth Floor, Boston, MA 02110-1301 USA -# -# Contatos: -# -# perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) -# erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) -# -# -VERSION="5.2" - -install() { - - BUILD_DIR=${TEMPDIR}/${1} - - mkdir -p ${BUILD_DIR} - if [ "$?" != "0" ]; then - exit -1 - fi - - pushd ${BUILD_DIR} - if [ "$?" != "0" ]; then - exit -1 - fi - - wget https://github.com/PerryWerneck/${1}/releases/download/${VERSION}/PKGBUILD - if [ "$?" != "0" ]; then - exit -1 - fi - - makepkg - if [ "$?" != "0" ]; then - exit -1 - fi - - popd - - cp ${BUILD_DIR}/mingw*-${1}*.tar.xz . - - rm -fr ${BUILD_DIR} - - pacman -U mingw*-${1}*.tar.xz - if [ "$?" != "0" ]; then - exit -1 - fi - -} - -TEMPDIR=$(mktemp -d) - -install lib3270 -install libv3270 - -rm -fr ${TEMPDIR} diff --git a/win/win32-configure b/win/win32-configure deleted file mode 100755 index 7632432..0000000 --- a/win/win32-configure +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash - -export HOST_CC=/usr/bin/gcc -export cache=win32.cache - -OPT=$@ - -OFFICE=$(grep -c 'AC_ARG_ENABLE(\[office' configure.ac) - -if [ "$OFFICE" != "0" ]; then - OPT="$OPT --disable-office" -fi - -if [ -d ~/win32/jdk ]; then - export JDK_HOME=$(readlink -f ~/win32/jdk) -else - unset JDK_HOME -fi - -if [ -d ~/win32/jre ]; then - export JRE_HOME=$(readlink -f ~/win32/jre) -else - unset JRE_HOME -fi - -./configure --cache-file=$cache \ - --host=i686-w64-mingw32 \ - --prefix=/usr/i686-w64-mingw32/sys-root/mingw \ - --libdir=/usr/i686-w64-mingw32/sys-root/mingw/lib \ - $OPT - - -status=$? - -rm -f "$cache" -exit $status - diff --git a/win/win64-configure b/win/win64-configure deleted file mode 100755 index 3d5299d..0000000 --- a/win/win64-configure +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -export HOST_CC=/usr/bin/gcc -export cache=win64.cache - -OPT=$@ - -OFFICE=$(grep -c 'AC_ARG_ENABLE(\[office' configure.ac) - -if [ "$OFFICE" != "0" ]; then - OPT="$OPT --disable-office" -fi - -if [ -d ~/win64/jdk ]; then - export JDK_HOME=$(readlink -f ~/win64/jdk) -fi - -if [ -d ~/win64/jre ]; then - export JRE_HOME=$(readlink -f ~/win64/jre) -fi - - -./configure --cache-file=$cache \ - --host=x86_64-w64-mingw32 \ - --prefix=/usr/x86_64-w64-mingw32/sys-root/mingw \ - --libdir=/usr/x86_64-w64-mingw32/sys-root/mingw/lib \ - $OPT - -status=$? - -rm -f "$cache" -exit $status - -- libgit2 0.21.2