* updated gtk (4.14.4 -> 4.15.2)
[t2sde.git] / scripts / Create-ParaStatus
blob4693b4191e0f70162e71db4bd0d92d627502a7a5
1 #!/usr/bin/env bash
3 # --- T2-COPYRIGHT-NOTE-BEGIN ---
4 # T2 SDE: scripts/Create-ParaStatus
5 # Copyright (C) 2004 - 2023 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
7 #
8 # This Copyright note is generated by scripts/Create-CopyPatch,
9 # more information can be found in the files COPYING and README.
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License version 2.
13 # --- T2-COPYRIGHT-NOTE-END ---
15 config=default
17 while [ "$1" ]; do
18 case "$1" in
19 -cfg) config=$2; shift; shift ;;
20 *) echo "Usage: $0 [ -cfg config ]"; exit 1 ;;
21 esac
22 done
24 . scripts/parse-config
25 qdir="$base/build/$SDECFG_ID/TOOLCHAIN/queue"
27 if [ ! -d $qdir ]; then
28 echo
29 echo "$qdir:"
30 echo "Queue not found! Please start 'Build-Target -cfg $config'"
31 echo "first on the master node ..."
32 echo
33 exit 1
36 date '+%H:%M %Y-%m-%d:%t--- current status ---' | expand -t20
37 cat $qdir/*.stat $qdir/*.lock 2> /dev/null | expand -t30
38 if [ -f $qdir/queue.txt ]; then
39 while read line; do
40 set $line; cat $qdir/$1-$6.todo 2> /dev/null
41 done < $qdir/queue.txt | expand -t30
42 else
43 echo -e 'Queue file not found!\tDisplaying' \
44 'all prepared jobs:' | expand -t30
45 cat $qdir/*.todo 2> /dev/null | sort -n -r -k9 | expand -t30
47 date '+%H:%M %Y-%m-%d:%t----------------------' | expand -t20