common/bin/hgforest.sh

changeset 1149
de457bd243b4
parent 1148
aa7e34e738cf
child 1288
7801df19942d
equal deleted inserted replaced
1148:aa7e34e738cf 1149:de457bd243b4
1 #!/bin/sh 1 #!/bin/sh
2 # 2 #
3 # Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved. 3 # Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved.
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # 5 #
6 # This code is free software; you can redistribute it and/or modify it 6 # This code is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License version 2 only, as 7 # under the terms of the GNU General Public License version 2 only, as
8 # published by the Free Software Foundation. 8 # published by the Free Software Foundation.
324 if [ "${sflag}" = "true" ] ; then 324 if [ "${sflag}" = "true" ] ; then
325 # Missing parent is fatal during sequential operation. 325 # Missing parent is fatal during sequential operation.
326 echo "ERROR: Missing parent path: ${parent_path}" > ${status_output} 326 echo "ERROR: Missing parent path: ${parent_path}" > ${status_output}
327 exit 1 327 exit 1
328 fi 328 fi
329 times=`expr ${times} '+' 1)` 329 times=`expr ${times} '+' 1`
330 if [ `expr ${times} '%' 10` -eq 0 ] ; then 330 if [ `expr ${times} '%' 10` -eq 0 ] ; then
331 echo "${parent_path} still not created, waiting..." > ${status_output} 331 echo "${parent_path} still not created, waiting..." > ${status_output}
332 fi 332 fi
333 sleep 5 333 sleep 5
334 done 334 done

mercurial