diff options
author | Koen Kooi <koen@openembedded.org> | 2008-08-11 11:57:26 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-08-11 11:57:26 +0000 |
commit | 71c45298b715e0d594b4945b19b947e733c2301e (patch) | |
tree | d6e589df308ef13f6bc683095d09b6bb53f5c3eb /contrib/angstrom/upload-packages.sh | |
parent | c0be89a2b7c8e07ab9ecd41ca717f3d529fdaff9 (diff) |
angstrom feed upload script: reuse file list to lessen load on server, add status output for the upload script
Diffstat (limited to 'contrib/angstrom/upload-packages.sh')
-rw-r--r-- | contrib/angstrom/upload-packages.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/contrib/angstrom/upload-packages.sh b/contrib/angstrom/upload-packages.sh index 1b457a5fc9..8942a0929c 100644 --- a/contrib/angstrom/upload-packages.sh +++ b/contrib/angstrom/upload-packages.sh @@ -14,22 +14,28 @@ REMOTED=website/feeds/2008/ipk/$(basename $PWD) mkdir -p upload-queue || true # Find and delete morgue dirs, we don't need them +echo "Deleting morgue directories" find ipk/ -name "morgue" -exec rm -rf \{\} \; # Copy all packages to an upload queue +echo "Copying packages to upload queue" find ipk/ -name "*.ipk" -exec cp \{\} upload-queue/ \; # Find file already present on webserver -ssh $REMOTEM "find $REMOTED/ -name "*.ipk" -exec basename \{\} \;" > files-remote +echo "Getting file list from server" +scp $REMOTEM:$REMOTED/unsorted/files-sorted files-remote ls upload-queue/ | grep -v morgue > files-local # Check for files already present on webserver +echo "Checking for duplicates" cat files-remote files-local | sort | uniq -u >files-uniq cat files-uniq files-local | sort | uniq -d > files-trans # Copy over non-duplicate files +echo "Starting rsync..." rsync -vz --files-from=files-trans upload-queue/ $REMOTEM:$REMOTED/unsorted/ # Clean up temporary files +echo "Removing upload queue" rm -rf files-remote files-local files-uniq files-trans upload-queue |