Rev 3997 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4561 | obado | 1 | # GetExoFile |
2 | # Fournit le fichier source d'un exercice de la classe qclass |
||
3261 | obado | 3 | |
4 | #si le parametre qexo contient un caractere special, on abandonne |
||
5 | qexo=!translate internal ./,;?* to $ $ in $qexo |
||
6 | !if $ $ isin $qexo |
||
7 | qexo= |
||
8 | !endif |
||
9 | |||
10 | !if $qexo=$empty |
||
11 | error=undefined qexo |
||
12 | !exit |
||
13 | !endif |
||
14 | |||
15 | !read scripts/check.class |
||
16 | !if $error!=$empty |
||
17 | !exit |
||
18 | !endif |
||
19 | |||
20 | fname=log/classes/$qclass/src/$qexo.oef |
||
21 | |||
22 | |||
23 | file_not_exist=No such file or directory |
||
24 | |||
25 | test=!sh cd $wims_home/log/classes/$qclass/src\ |
||
26 | ls $qexo.oef |
||
27 | |||
28 | |||
29 | !if $qexo.oef notin $test |
||
3997 | bpr | 30 | error=Sorry, this exercise '$qexo' does not exists in your class ! Cet exercice est introuvable dans votre classe. |
3261 | obado | 31 | !exit |
32 | !endif |