]> mj.ucw.cz Git - eval.git/blob - bin/mo-back-status
Added --force.
[eval.git] / bin / mo-back-status
1 #!/bin/sh
2 if [ -z "$1" ] ; then
3         echo "Directory name expected"
4         exit 1
5 fi
6 for m in `cd $1 ; echo *` ; do
7         echo -n "$m:"
8         for d in $1/$m/mo??/mo?? ; do
9                 u=`basename $d`
10                 if [ $u != mo00 -a `ls $d | wc -l` -gt 0 ] ; then
11                         echo -n " $u"
12                         if [ -d $d/.submit ] ; then
13                                 echo -n '('
14                                 ( cd $d/.submit ; echo -n * )
15                                 echo -n ')'
16                         fi
17                 fi
18         done
19         echo
20 done