Browse Source

upload_nightly.sh: Enable use for different machines

for/laforge/nightly
Harald Welte 5 years ago
committed by Pau Espin Pedrol
parent
commit
00607e2b6c
  1. 28
      upload_nightly.sh

28
upload_nightly.sh

@ -1,12 +1,24 @@
#!/bin/sh
DIST="201705-nightly"
REMOTE="generic@sysmocom-downloads"
MACHINE=$1
rsync --delete -avz tmp/deploy/ipk/ generic@sysmocom-downloads:sysmobts/$DIST/ipk
rsync --delete -avz tmp/deploy/images/ generic@sysmocom-downloads:sysmobts/$DIST/images
rsync --delete -avz tmp/deploy/tools/ generic@sysmocom-downloads:sysmobts/$DIST/tools
rsync --delete -avz tmp/deploy/sdk/ generic@sysmocom-downloads:sysmobts/$DIST/sdk
rsync --delete -avz tmp/cache/ generic@sysmocom-downloads:sysmobts/$DIST/cache-state
rsync --delete -avz cache/ generic@sysmocom-downloads:sysmobts/$DIST/cache
rsync --delete -avz conf/ generic@sysmocom-downloads:sysmobts/$DIST/conf
rsync -avz tmp/deploy/sources/ generic@sysmocom-downloads:sysmobts/$DIST/sources
if [ "z$MACHINE" == "z" ]; then
echo "You must specify the machine type as argument!"
exit 1
fi
# convert legacy machine name != download directory
if [ $MACHINE == "sysmobts-v2" ]; then
MACHINE="sysmobts"
fi
rsync --delete -avz tmp/deploy/ipk/ $REMOTE:$MACHINE/$DIST/ipk
rsync --delete -avz tmp/deploy/images/ $REMOTE:$MACHINE/$DIST/images
rsync --delete -avz tmp/deploy/tools/ $REMOTE:$MACHINE/$DIST/tools
rsync --delete -avz tmp/deploy/sdk/ $REMOTE:$MACHINE/$DIST/sdk
rsync --delete -avz tmp/cache/ $REMOTE:$MACHINE/$DIST/cache-state
rsync --delete -avz cache/ $REMOTE:$MACHINE/$DIST/cache
rsync --delete -avz conf/ $REMOTE:$MACHINE/$DIST/conf
rsync -avz tmp/deploy/sources/ $REMOTE:$MACHINE/$DIST/sources

Loading…
Cancel
Save