NIgel,<br>FYI only - File::Copy is used because of the following:<br>1) platform independant well tested code<br>2) works even when msys (and thus mingw are not installed yet)<br>3) faster than doing a system call out to dos or msys.<br>
<br>more ideas: <br>As for the error you are getting, I might have fixed this more globablly by either:<br>1) making perl2unix backslash special characters like space, questionmark, etc<br>2) making perl2unix detect special characters and just put single quotes around the full filename/expression.<br>
<br>Buzz. <br><br><div class="gmail_quote">On Sun, Apr 13, 2008 at 5:04 PM, <<a href="mailto:mythtv@cvs.mythtv.org">mythtv@cvs.mythtv.org</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Author: nigel<br>
Date: 2008-04-13 07:04:08 +0000 (Sun, 13 Apr 2008)<br>
New Revision: 17032<br>
Changeset: <a href="http://cvs.mythtv.org/trac/changeset/17032" target="_blank">http://cvs.mythtv.org/trac/changeset/17032</a><br>
<br>
Modified:<br>
<br>
trunk/mythtv/contrib/Win32/build/win32-packager.pl<br>
<br>
Log:<br>
<br>
Cope with spaces in copy pathnames. Prevent errors like:<br>
{{{<br>
file exists: c:/Program Files/MySql/MySql Server 5.0/bin/libmySQL.dll<br>
no parameters defined, so applying effect(copy) as (2nd src parameter => 1st src parameter)!<br>
copyng file (c:/Program Files/MySql/MySql Server 5.0/bin/libmySQL.dll => C:/MinGW/bin/libmySQL.dll)<br>
perl2unix: c:/Program Files/MySql/MySql Server 5.0/bin/libmySQL.dll<br>
perl2unix: C:/MinGW/bin/libmySQL.dll<br>
shell:C:\MSys\1.0\bin\bah.exe -c "( export PATH=/bin:/mingw/bin:$PATH;touch --reference=/c/Program Files/MySQL/MySQL Server 5.0/bin/libmySQL.dll /C/MinGW/bin/libmySQL.dll) 2>&1 "<br>
touch: failed to get attributes of '/c/Program': No such file or directory<br>
}}}<br>
It would probably be tidier to remove File::Copy and just do system('cp -p'),<br>
but for now, I'll just add some quoting.<br>
<br>
<br>
<br>
_______________________________________________<br>
mythtv-commits mailing list<br>
<a href="mailto:mythtv-commits@mythtv.org">mythtv-commits@mythtv.org</a><br>
<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits</a><br>
</blockquote></div><br>