Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release-src > by-pkgid > b44160518b99c1003104e29fc9e84a7f > files > 1

coin-3.1.3-8.mga5.src.rpm

diff -up ./bin/coin-config.orig ./bin/coin-config
--- ./bin/coin-config.orig	2013-08-20 18:02:39.364477980 +0300
+++ ./bin/coin-config	2013-08-20 18:03:16.693972197 +0300
@@ -17,7 +17,13 @@
 program="$0"
 me=`echo "$0" | sed 's,^.*[/\\],,g'`
 wd=`echo "$0" | sed 's,/[^/]*$,,'`
-prefix=`cd "$wd/.."; pwd`
+
+# /usrmove hack
+if test x"$wd" = x"/bin"; then
+  prefix=`cd "$wd/../usr"; pwd`
+else
+  prefix=`cd "$wd/.."; pwd`
+fi
 
 hello=`echo hello | fmt -t -w70 2>&1`
 if test x"$hello" = x"hello"; then