Using fuser instead of pidof to watch that make is alive.
This commit is contained in:
parent
5faab2229e
commit
46758a21be
5 changed files with 3 additions and 6 deletions
|
@ -992,7 +992,6 @@ $HEADER
|
||||||
SRC= /sources
|
SRC= /sources
|
||||||
MOUNT_PT= $BUILDDIR
|
MOUNT_PT= $BUILDDIR
|
||||||
PKG_LST= $PKG_LST
|
PKG_LST= $PKG_LST
|
||||||
MAKE_PID=\`pidof make | cut -d " " -f1\`
|
|
||||||
|
|
||||||
include makefile-functions
|
include makefile-functions
|
||||||
|
|
||||||
|
|
|
@ -484,7 +484,6 @@ $HEADER
|
||||||
SRC= /sources
|
SRC= /sources
|
||||||
MOUNT_PT= $BUILDDIR
|
MOUNT_PT= $BUILDDIR
|
||||||
PKG_LST= $PKG_LST
|
PKG_LST= $PKG_LST
|
||||||
MAKE_PID=\`pidof make | cut -d " " -f1\`
|
|
||||||
|
|
||||||
include makefile-functions
|
include makefile-functions
|
||||||
|
|
||||||
|
|
|
@ -356,7 +356,6 @@ $HEADER
|
||||||
SRC= /sources
|
SRC= /sources
|
||||||
MOUNT_PT= $BUILDDIR
|
MOUNT_PT= $BUILDDIR
|
||||||
PKG_LST= $PKG_LST
|
PKG_LST= $PKG_LST
|
||||||
MAKE_PID=\`pidof make | cut -d " " -f1\`
|
|
||||||
|
|
||||||
include makefile-functions
|
include makefile-functions
|
||||||
|
|
||||||
|
|
|
@ -201,7 +201,7 @@ cat << EOF
|
||||||
|
|
||||||
$i: $PREV
|
$i: $PREV
|
||||||
@\$(call echo_message, Building)
|
@\$(call echo_message, Building)
|
||||||
@./progress_bar.sh \$@ \$(MAKE_PID) &
|
@./progress_bar.sh \$@ &
|
||||||
@echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=${SCRIPT_ROOT} \$(MOUNT_PT)\`\n" >logs/$LOGFILE
|
@echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=${SCRIPT_ROOT} \$(MOUNT_PT)\`\n" >logs/$LOGFILE
|
||||||
EOF
|
EOF
|
||||||
) >> $MKFILE.tmp
|
) >> $MKFILE.tmp
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
[[ -z $1 ]] && exit
|
[[ -z $1 ]] && exit
|
||||||
[[ -z $2 ]] && exit
|
|
||||||
|
|
||||||
if [ ! -f $1 ] ; then
|
if [ ! -f $1 ] ; then
|
||||||
while [ -d /proc/$2 ] ; do
|
while fuser -v . 2>&1 | grep make >/dev/null ; do
|
||||||
echo -n "."
|
echo -n "."
|
||||||
sleep 1
|
sleep 1
|
||||||
|
[[ -f $1 ]] && exit
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Reference in a new issue