X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=Aster%2Falphasdist.py;h=f3e6cab5484802fbc8c5232d7b5302c18b3509bc;hb=3d4bf5ca25be90014dc77e5cdbcf3593097c9b6e;hp=e2707dde6eecf783ac0e0e8fddd5a6debce1790a;hpb=aa706683ab3ff4b9ddc8f893520384d75a709705;p=tools%2Feficas.git diff --git a/Aster/alphasdist.py b/Aster/alphasdist.py index e2707dde..f3e6cab5 100644 --- a/Aster/alphasdist.py +++ b/Aster/alphasdist.py @@ -23,11 +23,11 @@ import os,shutil,glob,sys import types -version="$Name: $"[7:-2] or 'Test1_4' +version="$Name: V7_main $"[7:-2] or 'Test1_4' # ==========Path du noyau local ==================== path_Noyau=".." # ============================================================ -nom_distrib="Eficas"+version+"AsterSTA7" +nom_distrib="Eficas"+version+"AsterSTA8" path_distrib=os.path.join("dist",nom_distrib) path_TextTools="/home/eficas/pkg/mxTools/egenix2.0.2pourWindows/mx/TextTools" dir_download= "/home/eficas/WWW/telechargement/eficas" @@ -38,35 +38,56 @@ def main(): copyfiles('.',path_distrib,['LICENSE.TERMS','INSTALL']) copyfiles('../Editeur',os.path.join(path_distrib,'Editeur'),['*.py','faqs.txt']) + copyfiles('../Traducteur',os.path.join(path_distrib,'Traducteur'),['*.py']) copyfiles('../Ihm',os.path.join(path_distrib,'Ihm'),['*.py']) copyfiles('../Extensions',os.path.join(path_distrib,'Extensions'),['*.py']) copyfiles('../Misc',os.path.join(path_distrib,'Misc'),['*.py']) copyfiles('../Accas',os.path.join(path_distrib,'Accas'),['*.py']) - copyfiles('Cata/Macro',os.path.join(path_distrib,'Aster','Cata','Macro'),['*.py']) +# Packages globaux (pour toutes les versions sauf surcharge) + copyfiles('../Aster/Cata',os.path.join(path_distrib,'Aster','Cata'),['*.py', ]) + copyfiles('Cata/Utilitai',os.path.join(path_distrib,'Aster','Cata','Utilitai'),['*.py']) copyfiles('Cata/pre74',os.path.join(path_distrib,'Aster','Cata','pre74'),['*.py']) - copyfiles('Cata/cataSTA5',os.path.join(path_distrib,'Aster','Cata','cataSTA5'),['*.py']) +# version 5 +# On enleve la V5 a la demande d AMA +# copyfiles('Cata/cataSTA5',os.path.join(path_distrib,'Aster','Cata','cataSTA5'),['*.py']) +#version 6 copyfiles('Cata/cataSTA6',os.path.join(path_distrib,'Aster','Cata','cataSTA6'),['*.py']) + copyfiles('Cata/cataSTA6/Macro',os.path.join(path_distrib,'Aster','Cata','cataSTA6','Macro'),['*.py']) +#version 7.3 +# copyfiles('Cata/cataSTA73',os.path.join(path_distrib,'Aster','Cata','cataSTA73'),['*.py']) +# copyfiles('Cata/cataSTA73/Macro',os.path.join(path_distrib,'Aster','Cata','cataSTA73','Macro'),['*.py']) +#version 7.6 + copyfiles('Cata/cataSTA76',os.path.join(path_distrib,'Aster','Cata','cataSTA76'),['*.py']) + copyfiles('Cata/cataSTA76/Macro',os.path.join(path_distrib,'Aster','Cata','cataSTA76','Macro'),['*.py']) +#version 8 + copyfiles('Cata/cataSTA8',os.path.join(path_distrib,'Aster','Cata','cataSTA8'),['*.py']) + copyfiles('Cata/cataSTA8/Macro',os.path.join(path_distrib,'Aster','Cata','cataSTA8,'Macro'),['*.py']) + copyfiles('../AIDE',os.path.join(path_distrib,'AIDE'),['*.py']) copyfiles('../AIDE/fichiers',os.path.join(path_distrib,'AIDE','fichiers'),['*']) copyfiles('../Aster',os.path.join(path_distrib,'Aster'),['prefs.py', 'editeur.ini', 'properties.py', 'eficas_aster.py', + 'style.py', ]) + copyfiles('../Aster/Cata',os.path.join(path_distrib,'Aster'),['aster.py',]) copyfiles('../convert',os.path.join(path_distrib,'convert'),['*.py']) copyfiles('../convert/Parserv5',os.path.join(path_distrib,'convert','Parserv5'),['*.py']) copyfiles('../generator',os.path.join(path_distrib,'generator'),['*.py']) copyfiles('../Editeur/icons',os.path.join(path_distrib,'Editeur','icons'),['*.gif']) + copyfiles('../Editeur/Patrons',os.path.join(path_distrib,'Editeur','Patrons'),['*.com*']) copyfiles(os.path.join(path_Noyau,'Noyau'),os.path.join(path_distrib,'Noyau'),['*.py']) copyfiles(os.path.join(path_Noyau,'Validation'),os.path.join(path_distrib,'Validation'),['*.py']) - copyfiles('../Aster/Cata',os.path.join(path_distrib,'Aster','Cata'),['*.py', - ]) copyfiles('../Tools',os.path.join(path_distrib,'Tools'),['*.py']) copyfiles('../Tools/foztools',os.path.join(path_distrib,'Tools','foztools'),['*.py']) + copyfiles('../Pmw',os.path.join(path_distrib,'Pmw'),['*.py']) + copyfiles('../Pmw/Pmw_1_2',os.path.join(path_distrib,'Pmw','Pmw_1_2'),['*.py']) + copyfiles('../Pmw/Pmw_1_2/lib',os.path.join(path_distrib,'Pmw','Pmw_1_2','lib'),['*.py','Pmw.def']) tarball= maketarball('dist',nom_distrib,nom_distrib) try: @@ -104,7 +125,7 @@ def copyfiles(dir_origin,dir_cible,listfiles): if not os.path.isdir(dir_cible):make_dir(dir_cible) for glob_files in listfiles: for file in glob.glob(os.path.join(dir_origin,glob_files)): - shutil.copy(file,dir_cible) + if os.path.isfile(file):shutil.copy(file,dir_cible) def maketarball(dir_trav,dir_cible,nom_tar): prev=os.getcwd()