function cpgait2surise(filename)
% CPGAIT2SURISE will copy a given filename to the su_gaits folder on the SURISE
%  platform.  
% USE: cpgait2surise somefile.rc <or filename variable>
% NOTE: This was adapted from /home/rise/copytest.m -AM 03/15/05
gaitnum=menu('Copy to which gait slot?','1','2','3','None');
if gaitnum ~= 4
    disp(sprintf('Copying %s to SU_GAITS folder in slot #%d (cgx_sudevel_%d.rc) on SURISE...\n', filename, gaitnum, gaitnum));
    % Copy to specific filename
    eval(['!scp ' filename ' rise@surise:RoboDevel/RiSE/Supervisor/Config/default/su_gaits/cgx_sudevel_' num2str(gaitnum) '.rc']);
else
    disp(sprintf('Copying %s to SU_GAITS folder on SURISE...\n', filename));
    %Copy using same filename
    eval(['!scp ' filename ' rise@surise:RoboDevel/RiSE/Supervisor/Config/default/su_gaits/' filename]);
end
