From e2776da872eb1bfb8c36d8fc71935ea5b9d5421e Mon Sep 17 00:00:00 2001 From: Raja R Harinath Date: Tue, 19 Sep 2006 14:23:25 +0000 Subject: * runtime/Makefile.am (etc/mono/config): Fix rule to avoid writing into a symlink created by the 2006-09-13 change below. svn path=/trunk/mono/; revision=65646 --- runtime/Makefile.am | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'runtime') diff --git a/runtime/Makefile.am b/runtime/Makefile.am index c0426d2495e..05e622d07d7 100644 --- a/runtime/Makefile.am +++ b/runtime/Makefile.am @@ -102,9 +102,10 @@ CLEANFILES = etc/mono/config # depend on $(symlinks) to ensure 'etc/mono' directory exists etc/mono/config: ../data/config Makefile $(symlinks) d=`cd ../support && pwd`; \ - sed 's,target="libMonoPosixHelper[^"]*",target="'$$d/libMonoPosixHelper.la'",' ../data/config > $@ - if test -z "$(libgdiplus_loc)"; then :; else \ - mv $@ $@t; \ + sed 's,target="libMonoPosixHelper[^"]*",target="'$$d/libMonoPosixHelper.la'",' ../data/config > $@t + if test -z "$(libgdiplus_loc)"; then \ + mv -f $@t $@; \ + else \ sed 's,,& ,' $@t > $@; \ rm -f $@t; \ fi -- cgit v1.2.3