mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 03:43:08 +01:00
buildDoc.sh : Added trap for the progress bar
This commit is contained in:
parent
de452ac62e
commit
133027e9bc
1 changed files with 11 additions and 3 deletions
14
buildDoc.sh
14
buildDoc.sh
|
@ -17,13 +17,21 @@ cd $ROOT_DIR/doc
|
||||||
make clean >> $LOG_FILE 2>&1
|
make clean >> $LOG_FILE 2>&1
|
||||||
make >> $LOG_FILE 2>&1 &
|
make >> $LOG_FILE 2>&1 &
|
||||||
|
|
||||||
PID=$!
|
export P=$!
|
||||||
|
|
||||||
while [ -d /proc/$PID ]
|
|
||||||
|
trap exitwhell INT
|
||||||
|
|
||||||
|
function exitwhell() {
|
||||||
|
kill -9 $P 2> /dev/null
|
||||||
|
echo " -- INT -- "
|
||||||
|
}
|
||||||
|
|
||||||
|
while [ -d /proc/$P ]
|
||||||
do
|
do
|
||||||
echo -n .
|
echo -n .
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
echo done.
|
echo done.
|
||||||
|
|
||||||
kill -9 $PID 2> /dev/null
|
|
||||||
|
|
Loading…
Reference in a new issue