Changeset 15315


Ignore:
Timestamp:
06/22/13 10:56:49 (12 years ago)
Author:
Eric.Larour
Message:

CHG: on localhost, we are creating symlinks. In some scenarios, we need hard copies. Made
that possible with an extra option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/os/issmscpout.m

    r13832 r15315  
    1 function issmscpout(host,path,login,port,packages)
     1function issmscpout(host,path,login,port,packages,varargin)
    22%ISSMSCPOUT send packages to a host, using scp on unix, and pscp on windows
    33%
    4 %   usage: issmscpout(host,path,packages)
     4%   usage: issmscpout(host,path,login,port,packages)
    55%
    66%
     
    88%get hostname
    99hostname=oshostname();
     10
     11%are we dis-allowing symbolic links?
     12if nargin==6,
     13        no_symlinks=1;
     14else
     15        no_symlinks=0;
     16end
    1017
    1118%if hostname and host are the same, do a simple copy
     
    1623                eval(['cd ' path])
    1724                system(['rm -rf ' packages{i} ]);
    18                 system(['ln -s ' here '/' packages{i} ' .']);
     25                if no_symlinks,
     26                        system(['cp  ' here '/' packages{i} ' .']);
     27                else
     28                        system(['ln -s ' here '/' packages{i} ' .']);
     29                end
    1930                eval(['cd ' here]);
    2031        end
Note: See TracChangeset for help on using the changeset viewer.