changeset 426:041e28575b3d

Changed the build script to wait until the new target directory has been really created. Otherwise the follwing create dir commant could fail. git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@661 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Sun, 30 Mar 2008 11:16:35 +0000
parents d88e5695f45e
children 042e94c68f7e
files buildRelease.sh
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/buildRelease.sh	Fri Mar 28 22:44:51 2008 +0000
+++ b/buildRelease.sh	Sun Mar 30 11:16:35 2008 +0000
@@ -90,6 +90,13 @@
     echo "ERROR: Creating dir $targetDir failed!"
     exit 1
 fi
+
+# wait until the new target dir has been really created
+while [ ! -d "$targetDir" ]
+do
+    sleep 1
+done
+
 mkdir $targetDir/indenters &> /dev/null
 if [ $? -gt 0 ]; then
     echo "ERROR: Creating dir indenters failed!"