Re: Ide scripts working on windows

2013-06-20 Thread Alex Harui
IIRC, any .sh that does a download won't work on Windows as .bat doesn't
have such a command.  The .bat versions requires some library like visual
basic which was considered too painful a requirement and thus we wrote the
installer.

It might be better to make the installer also a configurator or write a
separate configurator?

On 6/20/13 4:23 AM, Justin Mclean jus...@classsoftware.com wrote:

Hi,

Anyone on windows want to have a try at converting the OSX .sh script to
.bat scripts? Would be a nice to have for the release.

The scripts are:
addAIRtoSDK.sh - Add AIR SDK to Flex SDK
checkAllPlayerGlobals.sh - download and check (via MD5 hashes) all
version of playerglobal.swc
setFlashPlayerVersion.sh - changes Flash Player version for Flex SDK

They would help a lot with testing and with people wanting to use
different versions of AIR/FP.

Thanks,
Justin



RE: Ide scripts working on windows

2013-06-20 Thread Kessler CTR Mark J

   Windows does have cscript.exe[1] / wscript.exe which allows more control 
than batch files.  CScript stays in a console window, while wscript produces a 
Windows popup.  They use JScript and VBScript.  It can also interface with WMI 
[2] if needed.  WMI Reference [3], VBScript language reference [4].

A couple of references [5][6] show two very different ways to download files.



[1] http://en.wikipedia.org/wiki/Windows_Script_Host
[2] http://technet.microsoft.com/en-us/library/ee692772.aspx
[3] 
http://msdn.microsoft.com/en-us/library/windows/desktop/aa394572(v=vs.85).aspx
[4] http://msdn.microsoft.com/en-us/library/d1wf56tt(v=vs.84).aspx

[5] http://stackoverflow.com/questions/2973136/download-a-file-with-vbs
[6] http://www.robvanderwoude.com/vbstech_internet_download.php

-Mark


-Original Message-
From: Alex Harui [mailto:aha...@adobe.com] 
Sent: Thursday, June 20, 2013 11:11 AM
To: dev@flex.apache.org
Subject: Re: Ide scripts working on windows

IIRC, any .sh that does a download won't work on Windows as .bat doesn't
have such a command.  The .bat versions requires some library like visual
basic which was considered too painful a requirement and thus we wrote the
installer.

It might be better to make the installer also a configurator or write a
separate configurator?

On 6/20/13 4:23 AM, Justin Mclean jus...@classsoftware.com wrote:

Hi,

Anyone on windows want to have a try at converting the OSX .sh script to
.bat scripts? Would be a nice to have for the release.

The scripts are:
addAIRtoSDK.sh - Add AIR SDK to Flex SDK
checkAllPlayerGlobals.sh - download and check (via MD5 hashes) all
version of playerglobal.swc
setFlashPlayerVersion.sh - changes Flash Player version for Flex SDK

They would help a lot with testing and with people wanting to use
different versions of AIR/FP.

Thanks,
Justin



Re: Ide scripts working on windows

2013-06-20 Thread Justin Mclean
Hi,

Perhaps someone can try the scripts under cygwin on window to see if they work?

Justin

Re: Ide scripts working on windows

2013-06-20 Thread Alex Harui


On 6/20/13 9:21 AM, Justin Mclean jus...@classsoftware.com wrote:

Hi,

Perhaps someone can try the scripts under cygwin on window to see if they
work?

Justin
I've been wondering that myself.  I haven't tried it because the issue
remains that not everybody has Cygwin, VBScript or Jscript on Windows.  



RE: Ide scripts working on windows

2013-06-20 Thread Kessler CTR Mark J
I can try it out on my git tools when I get home in a few hours.  It's not 
Cygwin, but it runs the mini_run fine from the command line.

-Mark


-Original Message-
From: Alex Harui [mailto:aha...@adobe.com] 
Sent: Thursday, June 20, 2013 1:02 PM
To: dev@flex.apache.org
Subject: Re: Ide scripts working on windows



On 6/20/13 9:21 AM, Justin Mclean jus...@classsoftware.com wrote:

Hi,

Perhaps someone can try the scripts under cygwin on window to see if they
work?

Justin
I've been wondering that myself.  I haven't tried it because the issue
remains that not everybody has Cygwin, VBScript or Jscript on Windows.  



Re: Ide scripts working on windows

2013-06-20 Thread OmPrakash Muppirala
I would imagine that the scripts would work without any issues on Cygwin.
 But, of course, would require the end user to download Cygwin configure it
first.  Which is an unnecessary barrier when it comes to get going with the
Apache Flex SDK.

Thanks,
Om

On Thu, Jun 20, 2013 at 10:16 AM, Kessler CTR Mark J 
mark.kessler@usmc.mil wrote:

 I can try it out on my git tools when I get home in a few hours.  It's not
 Cygwin, but it runs the mini_run fine from the command line.

 -Mark


 -Original Message-
 From: Alex Harui [mailto:aha...@adobe.com]
 Sent: Thursday, June 20, 2013 1:02 PM
 To: dev@flex.apache.org
 Subject: Re: Ide scripts working on windows



 On 6/20/13 9:21 AM, Justin Mclean jus...@classsoftware.com wrote:

 Hi,
 
 Perhaps someone can try the scripts under cygwin on window to see if they
 work?
 
 Justin
 I've been wondering that myself.  I haven't tried it because the issue
 remains that not everybody has Cygwin, VBScript or Jscript on Windows.




Re: Ide scripts working on windows

2013-06-20 Thread Mark Kessler
I ran the checkAllPlayerGlobal.sh using my local git and it worked fine..
Here is the output.  So besides needing a shell (which was already
associated with that mime type on my machine), it works.


-Mark
-



D:\Development\Flex\flex-sdk\idecheckAllPlayerGlobals.sh
D:\PortableApps\Flex
Welcome to Git (version 1.8.1.2-preview20130201)


Run 'git help git' to display the help index.
Run 'git help command' to display help for specific commands.
The Apache Flex directory for the IDE is D:\PortableApps\Flex

Playerglobal.swc is part of the Adobe Flash Player and is licensed
under the the Flash Player end user license agreement (EULA).

The 10.2 and 10.3 Flash Player EULA is specified here:
http://www.adobe.com/products/eulas/pdfs/PlatformClients_PC_WWEULA_Combined_2010
0108_1657.pdf

The 11.X Flash Player EULA is specified here:
http://www.adobe.com/products/eulas/pdfs/PlatformClients_PC_WWEULA-MULTI-2011080
9_1357.pdf

In addition to the Adobe EULA license terms, you also agree to be bound by
the t
hird-party
terms specified here:
http://www.adobe.com/products/eula/third_party/

Adobe recommends that you review all licensing terms.

Please type Y to agree to terms of the license 
y
License accepted
Downloading player global 10.2
  % Total% Received % Xferd  Average Speed   TimeTime Time
Current
 Dload  Upload   Total   SpentLeft
Speed
100  296k  100  296k0 0   500k  0 --:--:-- --:--:-- --:--:--
575k
D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 95: md5:
command
 not found
D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 97: [:
aa7d785dd
5715626201f5e30fc1deb51: unary operator expected
MD5 hash incorrect
Downloading player global 10.2
  % Total% Received % Xferd  Average Speed   TimeTime Time
Current
 Dload  Upload   Total   SpentLeft
Speed
100  296k  100  296k0 0   612k  0 --:--:-- --:--:-- --:--:--
678k
Downloading player global 10.3
  % Total% Received % Xferd  Average Speed   TimeTime Time
Current
 Dload  Upload   Total   SpentLeft
Speed
100  299k  100  299k0 0   564k  0 --:--:-- --:--:-- --:--:--
600k
D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 95: md5:
command
 not found
D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 97: [:
6092b3d4e
2784212d174ca10904412bd: unary operator expected
MD5 hash incorrect
Downloading player global 10.3
  % Total% Received % Xferd  Average Speed   TimeTime Time
Current
 Dload  Upload   Total   SpentLeft
Speed
100  299k  100  299k0 0   712k  0 --:--:-- --:--:-- --:--:--
801k
Downloading player global 11.0
  % Total% Received % Xferd  Average Speed   TimeTime Time
Current
 Dload  Upload   Total   SpentLeft
Speed
100  329k  100  329k0 0   639k  0 --:--:-- --:--:-- --:--:--
703k
D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 95: md5:
command
 not found
D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 97: [:
5f5a291f0
2105cd83fb582b76646e603: unary operator expected
MD5 hash incorrect
Downloading player global 11.0
  % Total% Received % Xferd  Average Speed   TimeTime Time
Current
 Dload  Upload   Total   SpentLeft
Speed
100  329k  100  329k0 0   640k  0 --:--:-- --:--:-- --:--:--
703k
Downloading player global 11.1
  % Total% Received % Xferd  Average Speed   TimeTime Time
Current
 Dload  Upload   Total   SpentLeft
Speed
100  329k  100  329k0 0   639k  0 --:--:-- --:--:-- --:--:--
703k
D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 95: md5:
command
 not found
D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 97: [:
e3a0e0e8c
703ae5b1847b8ac25bbdc5f: unary operator expected
MD5 hash incorrect
Downloading player global 11.1
  % Total% Received % Xferd  Average Speed   TimeTime Time
Current
 Dload  Upload   Total   SpentLeft
Speed
100  329k  100  329k0 0   917k  0 --:--:-- --:--:-- --:--:--
1004k
Downloading player global 11.2
  % Total% Received % Xferd  Average Speed   TimeTime Time
Current
 Dload  Upload   Total   SpentLeft
Speed
100  331k  100  331k0 0   815k  0 --:--:-- --:--:-- --:--:--
922k
D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 95: md5:
command
 not found
D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 97: [:
c544a0695
18897880e0d732457b6fdeb: unary operator expected
MD5 hash incorrect
Downloading player global 11.2
  % Total% Received % Xferd  Average Speed   TimeTime Time
Current
 Dload  

Re: Ide scripts working on windows

2013-06-20 Thread Mark Kessler
Well by fine, I mean it ran all the way through and actually downloaded the
files.  However I do see the md5 requirement in there too... which I don't
have.


On Thu, Jun 20, 2013 at 6:44 PM, Mark Kessler
kesslerconsult...@gmail.comwrote:

 I ran the checkAllPlayerGlobal.sh using my local git and it worked fine..
 Here is the output.  So besides needing a shell (which was already
 associated with that mime type on my machine), it works.


 -Mark
 -



 D:\Development\Flex\flex-sdk\idecheckAllPlayerGlobals.sh
 D:\PortableApps\Flex
 Welcome to Git (version 1.8.1.2-preview20130201)


 Run 'git help git' to display the help index.
 Run 'git help command' to display help for specific commands.
 The Apache Flex directory for the IDE is D:\PortableApps\Flex

 Playerglobal.swc is part of the Adobe Flash Player and is licensed
 under the the Flash Player end user license agreement (EULA).

 The 10.2 and 10.3 Flash Player EULA is specified here:

 http://www.adobe.com/products/eulas/pdfs/PlatformClients_PC_WWEULA_Combined_2010
 0108_1657.pdf

 The 11.X Flash Player EULA is specified here:

 http://www.adobe.com/products/eulas/pdfs/PlatformClients_PC_WWEULA-MULTI-2011080
 9_1357.pdf

 In addition to the Adobe EULA license terms, you also agree to be bound by
 the t
 hird-party
 terms specified here:
 http://www.adobe.com/products/eula/third_party/

 Adobe recommends that you review all licensing terms.

 Please type Y to agree to terms of the license 
 y
 License accepted
 Downloading player global 10.2
   % Total% Received % Xferd  Average Speed   TimeTime Time
 Current
  Dload  Upload   Total   SpentLeft
 Speed
 100  296k  100  296k0 0   500k  0 --:--:-- --:--:-- --:--:--
 575k
 D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 95: md5:
 command
  not found
 D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 97: [:
 aa7d785dd
 5715626201f5e30fc1deb51: unary operator expected
 MD5 hash incorrect
 Downloading player global 10.2
   % Total% Received % Xferd  Average Speed   TimeTime Time
 Current
  Dload  Upload   Total   SpentLeft
 Speed
 100  296k  100  296k0 0   612k  0 --:--:-- --:--:-- --:--:--
 678k
 Downloading player global 10.3
   % Total% Received % Xferd  Average Speed   TimeTime Time
 Current
  Dload  Upload   Total   SpentLeft
 Speed
 100  299k  100  299k0 0   564k  0 --:--:-- --:--:-- --:--:--
 600k
 D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 95: md5:
 command
  not found
 D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 97: [:
 6092b3d4e
 2784212d174ca10904412bd: unary operator expected
 MD5 hash incorrect
 Downloading player global 10.3
   % Total% Received % Xferd  Average Speed   TimeTime Time
 Current
  Dload  Upload   Total   SpentLeft
 Speed
 100  299k  100  299k0 0   712k  0 --:--:-- --:--:-- --:--:--
 801k
 Downloading player global 11.0
   % Total% Received % Xferd  Average Speed   TimeTime Time
 Current
  Dload  Upload   Total   SpentLeft
 Speed
 100  329k  100  329k0 0   639k  0 --:--:-- --:--:-- --:--:--
 703k
 D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 95: md5:
 command
  not found
 D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 97: [:
 5f5a291f0
 2105cd83fb582b76646e603: unary operator expected
 MD5 hash incorrect
 Downloading player global 11.0
   % Total% Received % Xferd  Average Speed   TimeTime Time
 Current
  Dload  Upload   Total   SpentLeft
 Speed
 100  329k  100  329k0 0   640k  0 --:--:-- --:--:-- --:--:--
 703k
 Downloading player global 11.1
   % Total% Received % Xferd  Average Speed   TimeTime Time
 Current
  Dload  Upload   Total   SpentLeft
 Speed
 100  329k  100  329k0 0   639k  0 --:--:-- --:--:-- --:--:--
 703k
 D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 95: md5:
 command
  not found
 D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 97: [:
 e3a0e0e8c
 703ae5b1847b8ac25bbdc5f: unary operator expected
 MD5 hash incorrect
 Downloading player global 11.1
   % Total% Received % Xferd  Average Speed   TimeTime Time
 Current
  Dload  Upload   Total   SpentLeft
 Speed
 100  329k  100  329k0 0   917k  0 --:--:-- --:--:-- --:--:--
 1004k
 Downloading player global 11.2
   % Total% Received % Xferd  Average Speed   TimeTime Time
 Current
  Dload  Upload   Total   SpentLeft
 Speed
 100  331k  100  331k0 0   815k  0 --:--:-- --:--:-- --:--:--
 922k
 

Re: Ide scripts working on windows

2013-06-20 Thread OmPrakash Muppirala
On Windows/Cygwin, it should call md5sum instead.  md5 is specific to Macs.


Thanks,
Om

On Thu, Jun 20, 2013 at 3:47 PM, Mark Kessler
kesslerconsult...@gmail.comwrote:

 Well by fine, I mean it ran all the way through and actually downloaded the
 files.  However I do see the md5 requirement in there too... which I don't
 have.


 On Thu, Jun 20, 2013 at 6:44 PM, Mark Kessler
 kesslerconsult...@gmail.comwrote:

  I ran the checkAllPlayerGlobal.sh using my local git and it worked fine..
  Here is the output.  So besides needing a shell (which was already
  associated with that mime type on my machine), it works.
 
 
  -Mark
  -
 
 
 
  D:\Development\Flex\flex-sdk\idecheckAllPlayerGlobals.sh
  D:\PortableApps\Flex
  Welcome to Git (version 1.8.1.2-preview20130201)
 
 
  Run 'git help git' to display the help index.
  Run 'git help command' to display help for specific commands.
  The Apache Flex directory for the IDE is D:\PortableApps\Flex
 
  Playerglobal.swc is part of the Adobe Flash Player and is licensed
  under the the Flash Player end user license agreement (EULA).
 
  The 10.2 and 10.3 Flash Player EULA is specified here:
 
 
 http://www.adobe.com/products/eulas/pdfs/PlatformClients_PC_WWEULA_Combined_2010
  0108_1657.pdf
 
  The 11.X Flash Player EULA is specified here:
 
 
 http://www.adobe.com/products/eulas/pdfs/PlatformClients_PC_WWEULA-MULTI-2011080
  9_1357.pdf
 
  In addition to the Adobe EULA license terms, you also agree to be bound
 by
  the t
  hird-party
  terms specified here:
  http://www.adobe.com/products/eula/third_party/
 
  Adobe recommends that you review all licensing terms.
 
  Please type Y to agree to terms of the license 
  y
  License accepted
  Downloading player global 10.2
% Total% Received % Xferd  Average Speed   TimeTime Time
  Current
   Dload  Upload   Total   SpentLeft
  Speed
  100  296k  100  296k0 0   500k  0 --:--:-- --:--:-- --:--:--
  575k
  D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 95: md5:
  command
   not found
  D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 97: [:
  aa7d785dd
  5715626201f5e30fc1deb51: unary operator expected
  MD5 hash incorrect
  Downloading player global 10.2
% Total% Received % Xferd  Average Speed   TimeTime Time
  Current
   Dload  Upload   Total   SpentLeft
  Speed
  100  296k  100  296k0 0   612k  0 --:--:-- --:--:-- --:--:--
  678k
  Downloading player global 10.3
% Total% Received % Xferd  Average Speed   TimeTime Time
  Current
   Dload  Upload   Total   SpentLeft
  Speed
  100  299k  100  299k0 0   564k  0 --:--:-- --:--:-- --:--:--
  600k
  D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 95: md5:
  command
   not found
  D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 97: [:
  6092b3d4e
  2784212d174ca10904412bd: unary operator expected
  MD5 hash incorrect
  Downloading player global 10.3
% Total% Received % Xferd  Average Speed   TimeTime Time
  Current
   Dload  Upload   Total   SpentLeft
  Speed
  100  299k  100  299k0 0   712k  0 --:--:-- --:--:-- --:--:--
  801k
  Downloading player global 11.0
% Total% Received % Xferd  Average Speed   TimeTime Time
  Current
   Dload  Upload   Total   SpentLeft
  Speed
  100  329k  100  329k0 0   639k  0 --:--:-- --:--:-- --:--:--
  703k
  D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 95: md5:
  command
   not found
  D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 97: [:
  5f5a291f0
  2105cd83fb582b76646e603: unary operator expected
  MD5 hash incorrect
  Downloading player global 11.0
% Total% Received % Xferd  Average Speed   TimeTime Time
  Current
   Dload  Upload   Total   SpentLeft
  Speed
  100  329k  100  329k0 0   640k  0 --:--:-- --:--:-- --:--:--
  703k
  Downloading player global 11.1
% Total% Received % Xferd  Average Speed   TimeTime Time
  Current
   Dload  Upload   Total   SpentLeft
  Speed
  100  329k  100  329k0 0   639k  0 --:--:-- --:--:-- --:--:--
  703k
  D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 95: md5:
  command
   not found
  D:\Development\Flex\flex-sdk\ide\checkAllPlayerGlobals.sh: line 97: [:
  e3a0e0e8c
  703ae5b1847b8ac25bbdc5f: unary operator expected
  MD5 hash incorrect
  Downloading player global 11.1
% Total% Received % Xferd  Average Speed   TimeTime Time
  Current
   Dload  Upload   Total   SpentLeft
  Speed
  100  329k  100  329k0 0   917k  0 --:--:-- --:--:-- --:--:--
  1004k
  

Re: Ide scripts working on windows

2013-06-20 Thread Mark Kessler
Yeah in my Windows Git bin folder I see the md5Sum.exe.  (I don't use
cygwin).  I tried changing it in the script and now I get a option error.
the -q isn't a valid option.  I'll have to fiddle with this later.

-Mark




C:\Program Files (x86)\Git\binmd5sum --help
Usage: md5sum [OPTION] [FILE]...
  or:  md5sum [OPTION] --check [FILE]
Print or check MD5 checksums.
With no FILE, or when FILE is -, read standard input.

  -b, --binaryread files in binary mode (default on DOS/Windows)
  -c, --check check MD5 sums against given list
  -t, --text  read files in text mode (default)

The following two options are useful only when verifying checksums:
  --statusdon't output anything, status code shows success
  -w, --warn  warn about improperly formated MD5 checksum lines

  --help  display this help and exit
  --version   output version information and exit

The sums are computed as described in RFC 1321.  When checking, the input
should be a former output of this program.  The default mode is to print
a line with checksum, a character indicating type (`*' for binary, ` ' for
text), and name for each FILE.

Report bugs to bug-textut...@gnu.org.





On Thu, Jun 20, 2013 at 6:49 PM, OmPrakash Muppirala
bigosma...@gmail.comwrote:

 On Windows/Cygwin, it should call md5sum instead.  md5 is specific to Macs.


 Thanks,
 Om




Re: Ide scripts working on windows

2013-06-20 Thread Mark Kessler
Ok corrected the command to perform correctly... goofy freaking format for
bash sh.  I'm sure there is a better sollution than awk to strip the
filename, but it works.  The second line removes the prefixed \.  All the
hashes match except the last one.  It seems to be different.

#Gets the hash of the file and strips the filename off the results.
MD5hash=`md5sum ${playerGlobalSWC} | awk '{ print $1 }'`

#Removes the prefixed slash.
MD5hash=${MD5hash:1}



On Thu, Jun 20, 2013 at 6:59 PM, Mark Kessler
kesslerconsult...@gmail.comwrote:

 Yeah in my Windows Git bin folder I see the md5Sum.exe.  (I don't use
 cygwin).  I tried changing it in the script and now I get a option error.
 the -q isn't a valid option.  I'll have to fiddle with this later.

 -Mark




 C:\Program Files (x86)\Git\binmd5sum --help
 Usage: md5sum [OPTION] [FILE]...
   or:  md5sum [OPTION] --check [FILE]
 Print or check MD5 checksums.
 With no FILE, or when FILE is -, read standard input.

   -b, --binaryread files in binary mode (default on
 DOS/Windows)
   -c, --check check MD5 sums against given list
   -t, --text  read files in text mode (default)

 The following two options are useful only when verifying checksums:
   --statusdon't output anything, status code shows success
   -w, --warn  warn about improperly formated MD5 checksum lines

   --help  display this help and exit
   --version   output version information and exit

 The sums are computed as described in RFC 1321.  When checking, the input
 should be a former output of this program.  The default mode is to print
 a line with checksum, a character indicating type (`*' for binary, ` ' for
 text), and name for each FILE.

 Report bugs to bug-textut...@gnu.org.





 On Thu, Jun 20, 2013 at 6:49 PM, OmPrakash Muppirala bigosma...@gmail.com
  wrote:

 On Windows/Cygwin, it should call md5sum instead.  md5 is specific to
 Macs.


 Thanks,
 Om