Re: [Unattended] Prepare script failing on cygwin (+fix)

2008-04-07 Thread Juan Jose Pablos
[EMAIL PROTECTED] escribió:
 
 My mistake that should have read:
 
 There were still newlines in the $file variable so I changed s/\r// to 
 s/[\r\n]//g to strip out all carriage returns and newlines as there 
 shouldnt be either in $url or $path.
   

no problem, I was asking to be sure. Added to the repository, could you 
test it on your envioroment and report back

Thanks!

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
unattended-info mailing list
unattended-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-info


Re: [Unattended] Prepare script failing on cygwin (+fix)

2008-04-07 Thread Dave Mills
My mistake that should have read:

There were still newlines in the $file variable so I changed s/\r// to 
s/[\r\n]//g to strip out all carriage returns and newlines as there 
shouldnt be either in $url or $path.








Juan Jose Pablos [EMAIL PROTECTED] 
06/04/2008 14:26

To
Dave Mills [EMAIL PROTECTED]
cc
unattended-info@lists.sourceforge.net
Subject
Re: [Unattended] Prepare script failing on cygwin (+fix)






Dave Mills escribió:
 
 Seems to be an issue with escape chars not being processed as expected, 
 and newline's not being removed.
 
 I have added -ne to the three echo commands below to force echo to 
 supress newline and evaluate escape chars.
 
 There were still newlines in the $file variable so I changed s/\n// to 
 s/[\r\n]//g to strip out all carriage returns and newlines as there 
 shouldnt be either in $url or $path.
 

maybe removing all the return caracters on the scripts would help as 
well..


The orinal line has not got s/\n// :

file=`echo $needed | cut -d\| -f4 | tr '~' ' '  | perl -pe 's/\r//;s/^ 
*//;s/ *$//;s/([^\/]*\/*)$/lc($1)/eg'`


This email originates from Steria*.  It, and any attachments, may contain 
confidential information and may be subject to copyright or other intellectual 
property rights. It is only for the use of the addressee(s). You may not copy, 
forward, disclose, save or otherwise use it in any way if you are not the 
addressee(s) or responsible for delivery.
If you receive this email by mistake, please advise the sender and cancel it 
immediately.
Steria may monitor the content of emails within its network to ensure 
compliance with its policies and procedures.
Any email is susceptible to alteration and its integrity cannot be assured. 
Steria shall not be liable if the message is altered, modified, falsified, or 
edited.
_
*   Steria Limited, number 4077975;
Steria Services Limited,  number 2706218;
Steria Recruitment Limited, number 1437998.
Registered in England and Wales; registered office Three Cherry Trees Lane, 
Hemel Hempstead, Hertfordshire HP2 7AH
www.steria.co.uk.-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
unattended-info mailing list
unattended-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-info


Re: [Unattended] Prepare script failing on cygwin (+fix)

2008-04-07 Thread Dave Mills
Seems to work correctly however it is defaulting to ESN

Dave

# Default to ENU if nothing passed in as first arg
if [ .$1 == . ]; then WINLANG=ESN; else WINLANG=$1; fi





Juan Jose Pablos [EMAIL PROTECTED] 
07/04/2008 10:25

To
[EMAIL PROTECTED]
cc
unattended-info@lists.sourceforge.net
Subject
Re: [Unattended] Prepare script failing on cygwin (+fix)






[EMAIL PROTECTED] escribió:
 
 My mistake that should have read:
 
 There were still newlines in the $file variable so I changed s/\r// to 
 s/[\r\n]//g to strip out all carriage returns and newlines as there 
 shouldnt be either in $url or $path.
 

no problem, I was asking to be sure. Added to the repository, could you 
test it on your envioroment and report back

Thanks!


This email originates from Steria*.  It, and any attachments, may contain 
confidential information and may be subject to copyright or other intellectual 
property rights. It is only for the use of the addressee(s). You may not copy, 
forward, disclose, save or otherwise use it in any way if you are not the 
addressee(s) or responsible for delivery.
If you receive this email by mistake, please advise the sender and cancel it 
immediately.
Steria may monitor the content of emails within its network to ensure 
compliance with its policies and procedures.
Any email is susceptible to alteration and its integrity cannot be assured. 
Steria shall not be liable if the message is altered, modified, falsified, or 
edited.
_
*   Steria Limited, number 4077975;
Steria Services Limited,  number 2706218;
Steria Recruitment Limited, number 1437998.
Registered in England and Wales; registered office Three Cherry Trees Lane, 
Hemel Hempstead, Hertfordshire HP2 7AH
www.steria.co.uk.-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
unattended-info mailing list
unattended-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-info


Re: [Unattended] Prepare script failing on cygwin (+fix)

2008-04-07 Thread Juan Jose Pablos
[EMAIL PROTECTED] escribió:
 
 Seems to work correctly however it is defaulting to ESN
 
 Dave
 
 # Default to ENU if nothing passed in as first arg
 if [ .$1 == . ]; then WINLANG=ESN; else WINLANG=$1; fi
upsss...

that was a local modification.

It would be nice if we can select the default winlang for the site.

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
unattended-info mailing list
unattended-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-info


Re: [Unattended] Prepare script failing on cygwin (+fix)

2008-04-06 Thread Juan Jose Pablos
Dave Mills escribió:
 
 Seems to be an issue with escape chars not being processed as expected, 
 and newline's not being removed.
 
 I have added -ne to the three echo commands below to force echo to 
 supress newline and evaluate escape chars.
 
 There were still newlines in the $file variable so I changed s/\n// to 
 s/[\r\n]//g to strip out all carriage returns and newlines as there 
 shouldnt be either in $url or $path.
 

maybe removing all the return caracters on the scripts would help as well..


The orinal line has not got s/\n// :

file=`echo $needed | cut -d\| -f4 | tr '~' ' '  | perl -pe 's/\r//;s/^ 
*//;s/ *$//;s/([^\/]*\/*)$/lc($1)/eg'`

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
unattended-info mailing list
unattended-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-info


[Unattended] Prepare script failing on cygwin (+fix)

2008-04-03 Thread Dave Mills
Seems to be an issue with escape chars not being processed as expected, 
and newline's not being removed.

I have added -ne to the three echo commands below to force echo to 
supress newline and evaluate escape chars.

There were still newlines in the $file variable so I changed s/\n// to 
s/[\r\n]//g to strip out all carriage returns and newlines as there 
shouldnt be either in $url or $path.

Now works for me.

url=`echo -ne $needed | cut -d\| -f3 | tr '~' ' ' | perl -pe 
's/[\r\n]//g;s/^ *//;s/ *$//'`
file=`echo -ne $needed | cut -d\| -f4 | tr '~' ' '  | perl -pe 
's/[\r\n]//g;s/^ *//;s/ *$//;s/([^\/]*\/*)$/lc($1)/eg'`
path=`echo -ne $file | perl -pe 's#(.*/).*#$1#'`

This email originates from Steria*.  It, and any attachments, may contain 
confidential information and may be subject to copyright or other intellectual 
property rights. It is only for the use of the addressee(s). You may not copy, 
forward, disclose, save or otherwise use it in any way if you are not the 
addressee(s) or responsible for delivery.
If you receive this email by mistake, please advise the sender and cancel it 
immediately.
Steria may monitor the content of emails within its network to ensure 
compliance with its policies and procedures.
Any email is susceptible to alteration and its integrity cannot be assured. 
Steria shall not be liable if the message is altered, modified, falsified, or 
edited.
_
*   Steria Limited, number 4077975;
Steria Services Limited,  number 2706218;
Steria Recruitment Limited, number 1437998.
Registered in England and Wales; registered office Three Cherry Trees Lane, 
Hemel Hempstead, Hertfordshire HP2 7AH
www.steria.co.uk.-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
unattended-info mailing list
unattended-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-info