[CMake] upload multiple files
Mihai Sandu
voyagersm at gmail.com
Fri Feb 11 05:28:19 EST 2011
I want to upload multiple files and I think to do it with scp.
function (SSHUpload WORKDIR HOST USERNAME SOURCE DESTINATION)
find_program( SCP_PATH NAMES scp )
execute_process(WORKING_DIRECTORY ${WORKDIR}
COMMAND ${SCP_PATH} ${SOURCE}
${USERNAME}@${HOST}:${DESTINATION}
)
endfunction ()
And I call the function:
SSHUpload( "/home/user/tmp" "HOST" "USERNAME" "*" "DESTINATION" )
but I get the error: *: No such file or directory
There is another way? Or where I'm wrong?
PS: I tried also with scp -r but it take the folder, and I want only the
files from folder.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110211/e23052e2/attachment.htm>
More information about the CMake
mailing list