Changeset d44206f for common


Ignore:
Timestamp:
09/13/2006 08:30:00 PM (18 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
6f75d64
Parents:
597d802
Message:

Applied Dan Nicholson's changes to progress_bar.sh and its support code

Location:
common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • common/common-functions

    r597d802 rd44206f  
    4545$i:  $PREV
    4646        @\$(call echo_message, Building)
    47         @./progress_bar.sh \$@ &
     47        @./progress_bar.sh \$@ \$\$PPID &
    4848        @echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=${SCRIPT_ROOT} \$(MOUNT_PT)\`\n" >logs/$LOGFILE
    4949EOF
     
    6666$i:  $PREV
    6767        @\$(call echo_message, Building)
    68         @./progress_bar.sh \$@ &
     68        @./progress_bar.sh \$@ \$\$PPID &
    6969        @echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=${SCRIPT_ROOT}\`\n" >logs/$LOGFILE
    7070EOF
     
    368368$i:  $PREV
    369369        @\$(call echo_message, Building)
    370         @./progress_bar.sh \$@ &
     370        @./progress_bar.sh \$@ \$\$PPID &
    371371        @echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=${SCRIPT_ROOT} \$(MOUNT_PT)\`\n" >logs/$LOGFILE
    372372EOF
     
    388388$i:  $PREV
    389389        @\$(call echo_message, Building)
    390         @./progress_bar.sh \$@ &
     390        @./progress_bar.sh \$@ \$\$PPID &
    391391        @echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=${SCRIPT_ROOT}\`\n" >logs/$LOGFILE
    392392EOF
  • common/progress_bar.sh

    r597d802 rd44206f  
    88[[ -z $1 ]] && exit
    99TARGET=$1  # Remember the target build we are looking for
     10MAKE_PPID=$2
    1011
    1112declare -r  CSI=$'\e['  # DEC terminology, Control Sequence Introducer
     
    2223declare -i  PREV_SEC=0
    2324
    24 makePID=$(fuser -v . 2>&1 | grep make)
    25 makePID=$(echo $makePID | cut -d" " -f2)
    26 
    2725write_or_exit() {
    2826    # make has been killed or failed or run to completion, leave
    29   [[ ! -e /proc/$makePID ]] && echo -n "${CURSOR_ON}" && exit
     27  [[ ! -e /proc/${MAKE_PPID} ]] && echo -n "${CURSOR_ON}" && exit
    3028
    3129    # Target build complete, leave.
Note: See TracChangeset for help on using the changeset viewer.