Bug 397541, improve symlinking from nightly/ to nightly/YYYY/MM/YYY..., r=preed

This commit is contained in:
nrthomas%gmail.com 2007-10-17 13:52:39 +00:00
Родитель b86b8d8169
Коммит 5793ff6c5c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1103,8 +1103,8 @@ sub pushit {
push(@cmds,"ssh $ssh_opts -l $Settings::ssh_user $ssh_server rsync -avz $complete_remote_path/ $remote_path/latest-$Settings::milestone/");
}
if ( $cachebuild ) {
push(@cmds,"ssh $ssh_opts -l $Settings::ssh_user $ssh_server 'cd $remote_path && ln -s $datedir/$short_ud/ .'");
if ( $cachebuild && $datedir ne '') {
push(@cmds,"ssh $ssh_opts -l $Settings::ssh_user $ssh_server 'cd $remote_path && if [ ! -h $short_ud ]; then ln -s ${datedir}${short_ud} .; fi'");
}
} elsif ( $Settings::ReleaseToLatest ) {
push(@cmds,"ssh $ssh_opts -l $Settings::ssh_user $ssh_server mkdir -p $remote_path/latest-$Settings::milestone");