mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
upgradeFromGit.sh : Added progress bar during documentation build.
This commit is contained in:
parent
133027e9bc
commit
486782e33f
1 changed files with 27 additions and 14 deletions
|
@ -240,14 +240,27 @@ then
|
||||||
if [ "$a" == "y" -o "$a" == "Y" ]
|
if [ "$a" == "y" -o "$a" == "Y" ]
|
||||||
then
|
then
|
||||||
msg "-> Build the doc : " -en
|
msg "-> Build the doc : " -en
|
||||||
cd $ROOT_DIR/doc >> $LOG_FILE 2>&1 && make >> $LOG_FILE 2>&1 && cd - >> $LOG_FILE 2>&1
|
cd $ROOT_DIR/doc
|
||||||
if [ $? -gt 0 ]
|
|
||||||
then
|
make clean >> $LOG_FILE 2>&1
|
||||||
msg "Error"
|
make >> $LOG_FILE 2>&1 &
|
||||||
|
|
||||||
|
export P=$!
|
||||||
|
|
||||||
|
trap exitwhell INT
|
||||||
|
|
||||||
|
function exitwhell() {
|
||||||
|
[ -n "$P" ] && kill -9 $P 2> /dev/null
|
||||||
|
echo " -- INT -- "
|
||||||
exit 1
|
exit 1
|
||||||
else
|
}
|
||||||
msg "Ok"
|
|
||||||
fi
|
while [ -d /proc/$P ]
|
||||||
|
do
|
||||||
|
echo -n .
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
echo done.
|
||||||
|
|
||||||
if [ -n "$EXPORT_DOC_DIR" ]
|
if [ -n "$EXPORT_DOC_DIR" ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in a new issue