configure: make sure that global shadow doc symlink is always updated
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>
Fri, 19 Oct 2012 09:04:01 +0000 (11:04 +0200)
committerTor Arne Vestbø <tor.arne.vestbo@digia.com>
Thu, 25 Oct 2012 17:08:30 +0000 (19:08 +0200)
We forcibly overwrite the symlink - in case the source dir changes.

Change-Id: I3986b968f787ea0d250887113a0c223e10038546
Reviewed-by: Martin Smith <martin.smith@digia.com>
configure

index 3b39b80..6094f59 100755 (executable)
--- a/configure
+++ b/configure
@@ -2256,7 +2256,7 @@ if [ "$OPT_SHADOW" = "yes" ]; then
 
     # Prepare doc directory
     mkdir -p "$outpath/doc"
-    ln -s "$relpath"/doc/global "$outpath/doc"
+    ln -f -s "$relpath"/doc/global "$outpath/doc"
 fi
 
 # symlink fonts to be able to run application from build directory