History

Switch to rsync when releasing files

Better handles slow VM's.

Chris Bagwell committed 11 years ago

Commit ad03ae01 parent f39c5741 file · +1 −8Browse files

Unified · Split

release.sh+1−8
@@ -315,15 +315,8 @@ if [ $update_web = "yes" ]; then · 314 unmodified lines
315315 fi
316316
317317 if [ $release_files = "yes" ]; then
318− echo "Checking for an existing release..."
319− if ssh ${username}@${hostname} ls ${release_path}/${rcpath}${module}/${release_num}/$src_gz >/dev/null 2>&1; then
320− if [ "$release_force" != "yes" ]; then
321− echo "error: file already exists!"
322− exit 1
323− fi
324− fi
325318 ssh ${username}@${hostname} mkdir -p ${release_path}/${rcpath}${module}/${release_num}
326− scp -p $release_list ${username}@${hostname}:${release_path}/${rcpath}${module}/${release_num}
319+ rsync -avz --delete --progress $release_list ${username}@${hostname}:${release_path}/${rcpath}${module}/${release_num}
327320 # FIXME: Stop pushing this and need to find a solution to help push it later.
328321 #scp -p NEWS ${username}@${hostname}:${release_path}/${rcpath}${module}/${release_num}/README
329322 fi

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t