diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | bd9e6617827818fd043452c08c606f07b78014a0 (patch) | |
tree | 425bb4c3168f9c02f10150f235d2cb998dcc6108 /scripts/build-progress.sh | |
download | tdesdk-bd9e6617827818fd043452c08c606f07b78014a0.tar.gz tdesdk-bd9e6617827818fd043452c08c606f07b78014a0.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'scripts/build-progress.sh')
-rw-r--r-- | scripts/build-progress.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/build-progress.sh b/scripts/build-progress.sh new file mode 100644 index 00000000..05a9dfd7 --- /dev/null +++ b/scripts/build-progress.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +# This method gives some kind of status message in the title bar of Konsole, +# xterm, etc.. Thanks have to go to Malte Starostik +# <malte@kde.org> for the code :-) +set_title() { +if ([ "$TERM" = "xterm" ] || [ "$TERM" = "xterm-color" ] || [ "$TERM" = "screen" ]) && tty -s; then + echo -ne "\033]0;$1\007" +fi +} +. ./kde-buildrc +set_title "Progress of kde-build script..." + +cd $KDELOGDIR +while true; do + dir=`ls -t | head -n 1 | xargs grep "Entering directory" | tail -n 1 | awk "{print \\$4}" | sed "s'$KDESRCDIR/''g"` + set_title "Building $dir" + clear + grep --no-filename -i "time needed" *build* | \ + sed "s/\:T/ T/g" + sleep 5 +done; |