From: Camille GOUTTEBROZE Date: Mon, 8 Sep 2014 13:03:41 +0000 (+0200) Subject: First version of file app-quickstart.py X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c1e7a1160d0135dd3fcbd620af9d74f3dc78280d;p=modules%2Fkernel.git First version of file app-quickstart.py --- diff --git a/bin/app-quickstart.py b/bin/app-quickstart.py new file mode 100644 index 000000000..4fb5ba9df --- /dev/null +++ b/bin/app-quickstart.py @@ -0,0 +1,56 @@ +#! /usr/bin/env python +# -*- coding: iso-8859-1 -*- +# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +# +# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library 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 +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# + +import optparse + +def generate_sources( options, args ): + pass + +# ----------------------------------------------------------------------------- + +if __name__ == '__main__': + + parser = optparse.OptionParser( usage = "usage: python app-quickstart.py [options]" ) + + parser.add_option('-p', + "--prefix", + metavar="", + type="string", + action="store", + dest="prefix", + default='.', + help="Where the application's sources will be generated") + + parser.add_option('-m', + "--modules", + metavar="", + type="string", + action="append", + dest="modules", + default='KERNEL,GUI', + help="List of the application's modules") + + (options, args) = parser.parse_args() + + generate_sources( options, args ) diff --git a/bin/launchConfigureParser.py b/bin/launchConfigureParser.py index 77df1a60d..e283f9af0 100755 --- a/bin/launchConfigureParser.py +++ b/bin/launchConfigureParser.py @@ -1023,7 +1023,7 @@ def get_env(theAdditionalOptions=None, appname=salomeappname, cfgname=salomecfgn #################################################### # apply command-line options to the arguments # each option given in command line overrides the option from xml config file - # + #prefi # Options: gui, desktop, log_file, resources, # xterm, modules, embedded, standalone, # portkill, killall, interp, splash,