POC for progress bar.
This commit is contained in:
parent
b7faa5a022
commit
a858a7823c
6 changed files with 21 additions and 4 deletions
|
@ -991,6 +991,7 @@ $HEADER
|
|||
|
||||
SRC= /sources
|
||||
MOUNT_PT= $BUILDDIR
|
||||
MAKE_PID=\`pidof make | cut -d " " -f1\`
|
||||
|
||||
include makefile-functions
|
||||
|
||||
|
|
|
@ -478,6 +478,7 @@ $HEADER
|
|||
|
||||
SRC= /sources
|
||||
MOUNT_PT= $BUILDDIR
|
||||
MAKE_PID=\`pidof make | cut -d " " -f1\`
|
||||
|
||||
include makefile-functions
|
||||
|
||||
|
@ -571,7 +572,7 @@ do-housekeeping:
|
|||
userdel lfs; \\
|
||||
rm -rf /home/lfs; \\
|
||||
fi;
|
||||
|
||||
|
||||
EOF
|
||||
) >> $MKFILE
|
||||
|
||||
|
|
|
@ -355,6 +355,7 @@ $HEADER
|
|||
|
||||
SRC= /sources
|
||||
MOUNT_PT= $BUILDDIR
|
||||
MAKE_PID=\`pidof make | cut -d " " -f1\`
|
||||
|
||||
include makefile-functions
|
||||
|
||||
|
@ -431,7 +432,7 @@ restore-lfs-env:
|
|||
fi;
|
||||
@chown lfs:lfs /home/lfs/.bash* && \\
|
||||
touch \$@
|
||||
|
||||
|
||||
do_housekeeping:
|
||||
-umount \$(MOUNT_PT)/sys
|
||||
-umount \$(MOUNT_PT)/proc
|
||||
|
@ -442,7 +443,7 @@ do_housekeeping:
|
|||
userdel lfs; \\
|
||||
rm -rf /home/lfs; \\
|
||||
fi;
|
||||
|
||||
|
||||
EOF
|
||||
) >> $MKFILE
|
||||
|
||||
|
|
|
@ -201,6 +201,7 @@ cat << EOF
|
|||
|
||||
$i: $PREV
|
||||
@\$(call echo_message, Building)
|
||||
@./progress_bar.sh \$@ \$(MAKE_PID) &
|
||||
@echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=jhalfs \$(MOUNT_PT)\`\n" >logs/$LOGFILE
|
||||
EOF
|
||||
) >> $MKFILE.tmp
|
||||
|
|
13
common/progress_bar.sh
Executable file
13
common/progress_bar.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
# $Id$
|
||||
|
||||
set -e
|
||||
|
||||
if [ ! -f $1 ] ; then
|
||||
echo -n "."
|
||||
sleep 1
|
||||
if [ -d /proc/$2 ] ; then
|
||||
./$0 $1 $2
|
||||
fi
|
||||
fi
|
|
@ -481,7 +481,7 @@ fi
|
|||
#
|
||||
#
|
||||
if [[ "$PWD" != "$JHALFSDIR" ]]; then
|
||||
cp $COMMON_DIR/makefile-functions $JHALFSDIR/
|
||||
cp $COMMON_DIR/{makefile-functions,progress_bar.sh} $JHALFSDIR/
|
||||
[[ "$OPTIMIZE" != "0" ]] && cp optimize/opt_override $JHALFSDIR/
|
||||
if [[ "$COMPARE" != "0" ]] ; then
|
||||
mkdir -p $JHALFSDIR/extras
|
||||
|
|
Reference in a new issue