Changeset 3b63c8c for common/progress_bar.sh
- Timestamp:
- 07/26/2006 06:42:01 PM (18 years ago)
- Branches:
- experimental
- Children:
- 613d46b
- Parents:
- 1504208
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/progress_bar.sh
r1504208 r3b63c8c 22 22 declare -i PREV_SEC=0 23 23 24 makePID=$(fuser -v . 2>&1 | grep make) 25 makePID=$(echo $makePID | cut -d" " -f2) 24 26 25 27 write_or_exit() { 26 28 # make has been killed or failed or run to completion, leave 27 if ! fuser -v . 2>&1 | grep make >/dev/null ; then 28 echo -n "${CURSOR_ON}" && exit 29 fi 29 [[ ! -e /proc/$makePID ]] && echo -n "${CURSOR_ON}" && exit 30 30 31 # Target build complete, leave. 31 32 [[ -f ${TARGET} ]] && echo -n "${CURSOR_ON}" && exit 33 32 34 # It is safe to write to the screen 33 35 echo -n "$1"
Note:
See TracChangeset
for help on using the changeset viewer.