[Wine-patches] [eter-1.0.12] [eterwine] Copy file from skel-copy directory (eterbug #5225).

Alexander Morozov amorozov на etersoft.ru
Пн Май 30 18:53:36 MSD 2011


----------- следующая часть -----------
From 333f5d1ddebac909398c882c3ba2026b2d49bf4b Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Mon, 30 May 2011 18:40:30 +0400
Subject: [PATCH] Copy file from skel-copy directory (eterbug #5225).

---
 etersoft/scripts/wine.in |   28 +++++++++++++++++++---------
 1 files changed, 19 insertions(+), 9 deletions(-)

diff --git a/etersoft/scripts/wine.in b/etersoft/scripts/wine.in
index 4c513e1..af60c42 100644
--- a/etersoft/scripts/wine.in
+++ b/etersoft/scripts/wine.in
@@ -303,19 +303,29 @@ find_type()
 }
 
 	# 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
 
-- 
1.7.4.5



Подробная информация о списке рассылки Wine-patches