From db766ee58495badcd5308d987bd0331c4d81a6fd Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Wed, 7 Dec 2016 09:14:13 -0200 Subject: [PATCH] Ajustando nome do objeto, criando script para facilitar a geração dos .zip para teste em windows. --- src/pw3270-sharp/pw3270-sharp.cs | 2 +- testprograms/sample.cs | 19 +++++++++---------- winpacket.sh | 16 ++++++++++++++++ 3 files changed, 26 insertions(+), 11 deletions(-) create mode 100755 winpacket.sh diff --git a/src/pw3270-sharp/pw3270-sharp.cs b/src/pw3270-sharp/pw3270-sharp.cs index 9370980..e150af8 100644 --- a/src/pw3270-sharp/pw3270-sharp.cs +++ b/src/pw3270-sharp/pw3270-sharp.cs @@ -35,7 +35,7 @@ using System; using System.Text; using System.Runtime.InteropServices; -namespace tn3270 { +namespace pw3270 { /// /// Session with 3270 HOST. diff --git a/testprograms/sample.cs b/testprograms/sample.cs index 4873e57..30b1f6e 100644 --- a/testprograms/sample.cs +++ b/testprograms/sample.cs @@ -27,28 +27,27 @@ * */ -using tn3270; +using pw3270; class sample { static void Main(string[] args) { - tn3270.Session host = new tn3270.Session(""); - + pw3270.Session host = new pw3270.Session(""); + System.Console.WriteLine("Using pw3270 version " + host.GetVersion() + " revision " + host.GetRevision()); host.Connect("tn3270://zos.efglobe.com:telnet",10); - + if(host.IsConnected()) { - + System.Console.WriteLine("Connected to host"); - + System.Console.WriteLine(host.GetStringAt(14,19,38)); - + host.Disconnect(); } - + } - -} +} diff --git a/winpacket.sh b/winpacket.sh new file mode 100755 index 0000000..284c15f --- /dev/null +++ b/winpacket.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +rm -f *.zip + +win32-configure && make clean && make zip + +win64-configure && make clean && make zip + +if [ -d ~/public_html/win/x86_32 ]; then + cp *i686*.zip ~/public_html/win/x86_32 +fi + +if [ -d ~/public_html/win/x86_64 ]; then + cp *.x86_64*.zip ~/public_html/win/x86_64 +fi + -- libgit2 0.21.2