Rev 4475 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4475 | Rev 10816 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #! /bin/sh |
1 | #! /bin/sh |
2 | 2 | ||
3 | WIMS_HOME=`dirname $0`/.. |
3 | WIMS_HOME=`dirname $0`/.. |
4 | cd $WIMS_HOME |
4 | cd $WIMS_HOME |
5 | WIMS_HOME=`pwd` |
5 | WIMS_HOME=`pwd` |
6 | forumdir=$WIMS_HOME/forums |
- | |
7 | cmoduledir=$WIMS_HOME/public_html/modules/classes |
- | |
- | 6 | ||
8 | cd log/classes |
7 | cd log/classes |
9 | class=[0-9]* |
8 | class=[0-9]* |
- | 9 | ##if there is no old technical variables, put class in version 5 |
|
- | 10 | for cl in $class; do |
|
- | 11 | version=`cat $cl/version 2>/dev/null | awk '{print $1; exit}'` |
|
- | 12 | if [ ! $version -lt 5 ]; then :; |
|
- | 13 | else |
|
- | 14 | tv=`grep user__ $cl/.users/* 2>/dev/null` |
|
- | 15 | if [ -z "$tv" ]; then echo 5 >$cl/version ; fi ; |
|
- | 16 | fi |
|
- | 17 | done |
|
10 | 18 | ||
- | 19 | exit |
|
- | 20 | ||
- | 21 | forumdir=$WIMS_HOME/forums |
|
- | 22 | cmoduledir=$WIMS_HOME/public_html/modules/classes |
|
11 | ### all classes has now version |
23 | ### all classes has now version >=4 so nothing is done ... |
12 | ## nothing is useful in this case |
24 | ## nothing is useful in this case |
13 | for cl in $class |
25 | for cl in $class |
14 | do |
26 | do |
15 | version=`cat $cl/version 2>/dev/null | awk '{print $1; exit}'` |
27 | version=`cat $cl/version 2>/dev/null | awk '{print $1; exit}'` |
16 | if [ ! $version -lt 3 ]; then :; |
28 | if [ ! $version -lt 3 ]; then :; |