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
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 ---
19 -cfg) config
=$2; shift; shift ;;
20 *) echo "Usage: $0 [ -cfg config ]"; exit 1 ;;
24 .
scripts
/parse-config
25 qdir
="$base/build/$SDECFG_ID/TOOLCHAIN/queue"
27 if [ ! -d $qdir ]; then
30 echo "Queue not found! Please start 'Build-Target -cfg $config'"
31 echo "first on the master node ..."
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
40 set $line; cat $qdir/$1-$6.todo
2> /dev
/null
41 done < $qdir/queue.txt |
expand -t30
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