Subversion Repositories wimsdev

Rev

Rev 5384 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4561 obado 1
# ListModules
2
# Permet de lister les modules disponibles dans le niveau specifie par "option"
3261 obado 3
 
4
!if $ident_type=$empty and $format != $empty
5
	ident_type=$format
6
!endif
7
 
8
!read scripts/check.option
9
!if $error!=$empty
10
 !exit
11
!endif
12
 
4746 obado 13
!if $option=$empty or $option=None
14
	option=/
15
!endif
16
 
6364 obado 17
# On test avec getmodule pour savoir si c'est bien un repertoire de module qui est appele, et non un module directement.
4118 obado 18
!read jobs/getmodule.proc
19
!if $title notsametext
20
	error=sorry, you can't call this job on a module. Try GetModule instead.
21
	!exit
22
!endif
23
 
3261 obado 24
!bound lang within cn,en,fr,nl default fr
25
 
5194 guerimand 26
!readdef adm/levelname.phtml
27
!read adm/levelname.phtml
3261 obado 28
!read names.$lang
29
 
30
# list1 represente les noms de fichiers a ne pas inclure dans le decompte
5384 obado 31
list1=.,..,.DS_Store,.wimshome,.svn,adm,classes,data,devel,home,Remarks,template,Changelog.modif,Changelog.new,translator.README
3261 obado 32
# list2 liste tous les fichiers du repertoire /sheets
33
list2=!listfile -a $wims_home/public_html/modules$option
34
# on retire ensuite de list2 les noms de fichiers de list1
35
list2=!lines2items  $list2
36
 
37
listContent=!listcomplement $list1 in $list2 
5300 obado 38
nb_modules=!itemcnt $listContent