make-stable: Implement a working dry run with nicer output
We can not use --link-dest when doing the dryrun as it will consider everything up to date. So create some base args and then add the right parts to it. Skip --checksum from the cli as it makes things really slow. Use rsync (instead of diff -r) as this will be used for the final handling. Keep on using sub dirs as this gives higher control. We could otherwise just syncrhonize everything.
This commit is contained in:
parent
30fac6acb8
commit
10236ec492
|
@ -13,7 +13,9 @@ RELEASE=$2
|
||||||
DRYRUN=$3
|
DRYRUN=$3
|
||||||
|
|
||||||
if [ "x$DRYRUN" != "x" ]; then
|
if [ "x$DRYRUN" != "x" ]; then
|
||||||
ARGS=--dry-run
|
BASE_ARGS="--recursive --delete --links --verbose --dry-run "
|
||||||
|
else
|
||||||
|
BASE_ARGS="--delete -avH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DIRS="images ipk sdk tools cache-state sources cache conf"
|
DIRS="images ipk sdk tools cache-state sources cache conf"
|
||||||
|
@ -26,9 +28,14 @@ do
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Working on $i"
|
if [ "x$DRYRUN" != "x" ]; then
|
||||||
rsync $ARGS --delete -avH \
|
ARGS="$BASE_ARGS"
|
||||||
--link-dest=$PWD/web-files/$MACHINE/$RELEASE-testing/$i \
|
else
|
||||||
|
ARGS="$BASE_ARGS --link-dest=$PWD/web-files/$MACHINE/$RELEASE-testing/$i"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Checking $i"
|
||||||
|
rsync $ARGS \
|
||||||
web-files/$MACHINE/$RELEASE-testing/$i/ \
|
web-files/$MACHINE/$RELEASE-testing/$i/ \
|
||||||
web-files/$MACHINE/$RELEASE/$i/
|
web-files/$MACHINE/$RELEASE/$i/ | egrep -v "sending incre|sent |total"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue