- Timestamp:
- 09/13/2006 08:30:00 PM (18 years ago)
- Branches:
- 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- 6f75d64
- Parents:
- 597d802
- Location:
- common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
common/common-functions
r597d802 rd44206f 45 45 $i: $PREV 46 46 @\$(call echo_message, Building) 47 @./progress_bar.sh \$@ &47 @./progress_bar.sh \$@ \$\$PPID & 48 48 @echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=${SCRIPT_ROOT} \$(MOUNT_PT)\`\n" >logs/$LOGFILE 49 49 EOF … … 66 66 $i: $PREV 67 67 @\$(call echo_message, Building) 68 @./progress_bar.sh \$@ &68 @./progress_bar.sh \$@ \$\$PPID & 69 69 @echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=${SCRIPT_ROOT}\`\n" >logs/$LOGFILE 70 70 EOF … … 368 368 $i: $PREV 369 369 @\$(call echo_message, Building) 370 @./progress_bar.sh \$@ &370 @./progress_bar.sh \$@ \$\$PPID & 371 371 @echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=${SCRIPT_ROOT} \$(MOUNT_PT)\`\n" >logs/$LOGFILE 372 372 EOF … … 388 388 $i: $PREV 389 389 @\$(call echo_message, Building) 390 @./progress_bar.sh \$@ &390 @./progress_bar.sh \$@ \$\$PPID & 391 391 @echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=${SCRIPT_ROOT}\`\n" >logs/$LOGFILE 392 392 EOF -
common/progress_bar.sh
r597d802 rd44206f 8 8 [[ -z $1 ]] && exit 9 9 TARGET=$1 # Remember the target build we are looking for 10 MAKE_PPID=$2 10 11 11 12 declare -r CSI=$'\e[' # DEC terminology, Control Sequence Introducer … … 22 23 declare -i PREV_SEC=0 23 24 24 makePID=$(fuser -v . 2>&1 | grep make)25 makePID=$(echo $makePID | cut -d" " -f2)26 27 25 write_or_exit() { 28 26 # make has been killed or failed or run to completion, leave 29 [[ ! -e /proc/$ makePID]] && echo -n "${CURSOR_ON}" && exit27 [[ ! -e /proc/${MAKE_PPID} ]] && echo -n "${CURSOR_ON}" && exit 30 28 31 29 # Target build complete, leave.
Note:
See TracChangeset
for help on using the changeset viewer.