}
# Copying from datadir if we have some prepared tree there
- if [ ! "$WINEMODE" = "--attach" ] && cd ${WINEDATADIR}/skel 2>/dev/null ; then
- echo "Copying prepared tree from '${WINEDATADIR}/skel' ..."
+ if [ ! "$WINEMODE" = "--attach" ] ; then
+ echo "Copying prepared tree from '${WINEDATADIR}/skel-copy' and '${WINEDATADIR}/skel' ..."
XARGS="xargs -IQQQ"
echo | $XARGS 2>/dev/null || XARGS="xargs -iQQQ"
- find_type d | $XARGS $INSTALL -m 2775 -d "${CROOT}/QQQ" || fatal "Can't copy libraries. Possible xargs is broken."
- # remove possible targets (for do not use unportable cp --remove-destination)
- find_type f | $XARGS rm -f "${CROOT}/QQQ"
- if [ -n "$WINECOPYSKEL" ] ; then
- find_type f | $XARGS cp -f "${WINEDATADIR}/skel/QQQ" "${CROOT}/QQQ" || fatal "Can't copy skel files. Possible xargs is broken."
- else
- find_type f | $XARGS ln -sf "${WINEDATADIR}/skel/QQQ" "${CROOT}/QQQ" || fatal "Can't symlink skel files. Possible xargs is broken."
+ if cd ${WINEDATADIR}/skel-copy 2>/dev/null ; then
+ find_type d | $XARGS $INSTALL -m 2775 -d "${CROOT}/QQQ" || fatal "Can't copy libraries. Possible xargs is broken."
+ # remove possible targets (for do not use unportable cp --remove-destination)
+ find_type f | $XARGS rm -f "${CROOT}/QQQ"
+ find_type f | $XARGS cp -f "${WINEDATADIR}/skel-copy/QQQ" "${CROOT}/QQQ" || fatal "Can't copy skel files. Possible xargs is broken."
fi
+
+ if cd ${WINEDATADIR}/skel 2>/dev/null ; then
+ find_type d | $XARGS $INSTALL -m 2775 -d "${CROOT}/QQQ" || fatal "Can't copy libraries. Possible xargs is broken."
+ # remove possible targets (for do not use unportable cp --remove-destination)
+ find_type f | $XARGS rm -f "${CROOT}/QQQ"
+ if [ -n "$WINECOPYSKEL" ] ; then
+ find_type f | $XARGS cp -f "${WINEDATADIR}/skel/QQQ" "${CROOT}/QQQ" || fatal "Can't copy skel files. Possible xargs is broken."
+ else
+ find_type f | $XARGS ln -sf "${WINEDATADIR}/skel/QQQ" "${CROOT}/QQQ" || fatal "Can't symlink skel files. Possible xargs is broken."
+ fi
+ fi
+
cd - >/dev/null
fi