2017-08-03 10:24:27 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Merge -testing into -stable by using hard links so we don't
|
|
|
|
# double the space requirement.
|
|
|
|
|
|
|
|
if [ $# -lt 2 ]; then
|
|
|
|
echo "Need to pass MACHINE RELEASE as argument for upload"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
MACHINE=$1
|
|
|
|
RELEASE=$2
|
|
|
|
DRYRUN=$3
|
|
|
|
|
|
|
|
if [ "x$DRYRUN" != "x" ]; then
|
2017-08-07 04:39:06 +00:00
|
|
|
BASE_ARGS="--recursive --delete --links --verbose --dry-run "
|
|
|
|
else
|
|
|
|
BASE_ARGS="--delete -avH"
|
2017-08-03 10:24:27 +00:00
|
|
|
fi
|
|
|
|
|
2017-08-07 04:33:01 +00:00
|
|
|
DIRS="images ipk sdk tools cache-state sources cache conf"
|
2017-08-03 10:24:27 +00:00
|
|
|
|
|
|
|
for i in $DIRS;
|
|
|
|
do
|
2017-08-07 04:34:37 +00:00
|
|
|
if [ ! -e $PWD/web-files/$MACHINE/$RELEASE-testing/$i ]; then
|
|
|
|
echo "Skipping $i, directory doesn't exist"
|
|
|
|
echo ""
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
|
2017-08-07 04:39:06 +00:00
|
|
|
if [ "x$DRYRUN" != "x" ]; then
|
|
|
|
ARGS="$BASE_ARGS"
|
|
|
|
else
|
|
|
|
ARGS="$BASE_ARGS --link-dest=$PWD/web-files/$MACHINE/$RELEASE-testing/$i"
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Checking $i"
|
|
|
|
rsync $ARGS \
|
2017-08-03 10:24:27 +00:00
|
|
|
web-files/$MACHINE/$RELEASE-testing/$i/ \
|
2017-08-07 04:39:06 +00:00
|
|
|
web-files/$MACHINE/$RELEASE/$i/ | egrep -v "sending incre|sent |total"
|
2017-08-03 10:24:27 +00:00
|
|
|
done
|