exit 1
fi
-src="$(awk -v component="$component" '$1 == component {print $2; exit}' "$componentlist")"
-if [ -z "$src" ]; then
+srchost="$(awk -v component="$component" '$1 == component {print $2; exit}' "$componentlist")"
+srcdir="$(awk -v component="$component" '$1 == component {print $3; exit}' "$componentlist")"
+if [ -z "$srchost" ] || [ -z "$srcdir" ]; then
echo >&2 "$0: Invalid component: $component (not found in $componentlist)";
exit 1
fi
exit 1
fi
+if [ "$srchost" = "`hostname -f`" ]; then
+ src="$srcdir"
+else
+ src="$srchost:$srcdir"
+fi
+
echo "$0: Acquiring locks..."
lock 200 "$base" 0
lock 201 "$tgt" 1