From 3a4484b40671b7026d020edbe534c1a000bf3c56 Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Thu, 21 Feb 2008 14:56:41 +0000 Subject: [PATCH] *** empty log message *** --- Openturns/sdistOTqt.py | 15 +-------------- Ui/Makefile.am | 37 ------------------------------------- Ui/makefile | 15 +++++++++++++++ bootstrap | 6 ------ configure.ac | 7 ------- insercopyright.py | 39 --------------------------------------- 6 files changed, 16 insertions(+), 103 deletions(-) delete mode 100644 Ui/Makefile.am create mode 100644 Ui/makefile delete mode 100755 bootstrap delete mode 100644 configure.ac delete mode 100644 insercopyright.py diff --git a/Openturns/sdistOTqt.py b/Openturns/sdistOTqt.py index f9316308..1489dc75 100644 --- a/Openturns/sdistOTqt.py +++ b/Openturns/sdistOTqt.py @@ -33,8 +33,7 @@ def main(): copyfiles('../Editeur',os.path.join(path_distrib,'Editeur'),['*.py','faqs.txt']) copyfiles('../InterfaceTK',os.path.join(path_distrib,'InterfaceTK'),['*.py','faqs.txt']) copyfiles('../InterfaceQT',os.path.join(path_distrib,'InterfaceQT'),['*.py','faqs.txt']) - copyfiles('../Ui',os.path.join(path_distrib,'Ui'),['*.py']) - copyfiles('../Ui',os.path.join(path_distrib,'Ui'),['*.ui']) + copyfiles('../Ui',os.path.join(path_distrib,'Ui'),['*.ui'],'makefile') copyfiles('../Openturns',os.path.join(path_distrib,'Openturns'),['*.py','*.ini']) copyfiles('../Ihm',os.path.join(path_distrib,'Ihm'),['*.py']) copyfiles('../Extensions',os.path.join(path_distrib,'Extensions'),['*.py']) @@ -60,12 +59,6 @@ def main(): copyfiles('../Noyau',os.path.join(path_distrib,'Noyau'),['*.py']) copyfiles('../Validation',os.path.join(path_distrib,'Validation'),['*.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: @@ -74,12 +67,6 @@ def main(): print "Repertoire de download inconnu : ",dir_download - try: - shutil.copytree(path_TextTools,os.path.join(path_distrib,'Tools','TextTools')) - except: - print "Impossible de recuperer mxTextTools : ",dir_download - sys.exit(1) - def make_dir(dir_cible): if type(dir_cible) is not types.StringType: diff --git a/Ui/Makefile.am b/Ui/Makefile.am deleted file mode 100644 index a0e07138..00000000 --- a/Ui/Makefile.am +++ /dev/null @@ -1,37 +0,0 @@ -BUILT_SOURCES = \ -desChoixCata.py \ -desCommande.py \ -desCommentaire.py \ -desError.py \ -desFormule.py \ -desInactif.py \ -desInclude.py \ -desListeParam.py \ -desMCFact.py \ -desMCListAjout.py \ -desMacro.py \ -desParam.py \ -desPlusieursBase.py \ -desPlusieursInto.py \ -desPoursuite.py \ -desRacine.py \ -desSelectVal.py \ -desUniqueASSD.py \ -desUniqueBase.py \ -desUniqueComp.py \ -desUniqueInto.py \ -desUniqueSDCO.py \ -desUniqueSDCOInto.py \ -desVisu.py \ -myMain.py - -uieficasdir = $(prefix)/Ui - -nobase_uieficas_PYTHON = $(BUILT_SOURCES) - - - -SUFFIXES = .ui - -.ui.py : - $(PYUIC) -o $@ $< diff --git a/Ui/makefile b/Ui/makefile new file mode 100644 index 00000000..7473e610 --- /dev/null +++ b/Ui/makefile @@ -0,0 +1,15 @@ +PYUIC = /local/opt/V3_2_7/SALOME3/prerequis/PyQt-3.13/bin/pyuic +.PHONY : all +.SUFFIXES : .ui .py + + +PY_FILES = desChoixCata.py desCommande.py desCommentaire.py desError.py desFormule.py desInactif.py \ + desInclude.py desListeParam.py desMacro.py desMCFact.py desMCListAjout.py desParam.py \ + desPlusieursBase.py desPlusieursInto.py desPoursuite.py desRacine.py desSelectVal.py \ + desUniqueASSD.py desUniqueBase.py desUniqueComp.py desUniqueInto.py desUniqueSDCOInto.py \ + desUniqueSDCO.py desVisu.py myMain.py + +%.py:%.ui + ${PYUIC} -o $@ $< + +all : $(PY_FILES) diff --git a/bootstrap b/bootstrap deleted file mode 100755 index 5933cd9c..00000000 --- a/bootstrap +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -touch NEWS README AUTHORS ChangeLog && \ -aclocal && \ -autoconf && \ -automake --add-missing --copy diff --git a/configure.ac b/configure.ac deleted file mode 100644 index c6670854..00000000 --- a/configure.ac +++ /dev/null @@ -1,7 +0,0 @@ -AC_INIT(insercopyright.py) -AM_INIT_AUTOMAKE(eficas, 1.14) -AM_PATH_PYTHON -AC_ARG_VAR([PYUIC],AC_HELP_STRING([PYUIC],[The path to the Python tool 'pyuic'])) -AC_PATH_PROG([PYUIC],[pyuic],[false]) -test x$PYUIC = xfalse && AC_MSG_ERROR([The 'pyuic' tool is mandatory. Check installation.]) -AC_OUTPUT([Ui/Makefile]) diff --git a/insercopyright.py b/insercopyright.py deleted file mode 100644 index 49a3094a..00000000 --- a/insercopyright.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -import glob,os - -copyright="""# CONFIGURATION MANAGEMENT OF EDF VERSION -# ====================================================================== -# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG -# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY -# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY -# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR -# (AT YOUR OPTION) ANY LATER VERSION. -# -# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT -# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF -# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU -# GENERAL PUBLIC LICENSE FOR MORE DETAILS. -# -# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE -# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER, -# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE. -# -# -# ====================================================================== -""" - -listfich=glob.glob('*') -for fich in listfich: - if not os.path.isfile(fich):continue - print "Lecture ",fich - f=open(fich,'r') - text=f.read() - f.close() - os.rename(fich,fich+'.bak') - - text=copyright + text - - f2=open(fich,'w') - f2.write(text) - f2.close() - -- 2.39.2