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)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 22 Oct 2012 17:36:43 +0000 (19:36 +0200)
We forcibly overwrite the symlink - in case the source dir changes.

Change-Id: I3986b968f787ea0d250887113a0c223e10038546
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
configure

index f03bd58..c3e61d6 100755 (executable)
--- a/configure
+++ b/configure
@@ -2257,7 +2257,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