fi
tgt="$base/$component"
if ! [ -d "$tgt" ]; then
- echo >&2 "$0: Invalid component: $component ($tgt does not exist)";
- exit 1
+ echo "$0: Creating $tgt for $component";
+ mkdir "$tgt"
fi
if [ "$srchost" = "`hostname -f`" ]; then
echo "$0: Updating master copy of $component..."
rsync --delete \
- -tr \
+ -trz \
+ --links --hard-links --safe-links \
--link-dest="$tgt" \
"$src/." "$tmpdir_new/."
echo "$0: Done. Committing."