2 .. include:: ../../rst_prolog.rst
14 Depending on the selected options, the created archive includes sources and binaries
15 of SALOME products and prerequisites.
17 Utility *salomeTools* is also included in the archive.
20 By default the package only includes the sources of the prerequisites and the products.
21 To select a subset use the *--content* option.
26 * Create a package for a product (example as *SALOME_xx*): ::
30 This command will create an archive named ``SALOME_xx.tgz`` in the working directory (``$USER.workDir``).
31 If the archive already exists an exception is thrown.
33 * Create a package with a specific name: ::
35 sat package SALOME_xx --name YourSpecificName
38 By default, the archive is created in the working directory of the user (``$USER.workDir``).
39 If the option *name* is used with a path (relative or absolute) it will be used.
40 If the option *name* is not used and binaries (modules or prerequisites) are
41 included in the package, the architecture (ex: MD10_64) will be appened to the name.
46 Creates <proudct>.tar.gz in $USER.workDir
48 sat package <product> -b
49 Creates <proudct>_<arch>.tar.gz in $USER.workDir
51 sat package <product> -n myname
52 Creates myname.tar.gz in $USER.workDir
54 sat package <product> -n ~/myname -b
55 Creates myname.tar.gz in the home directory
57 * Force the creation of the archive (if it already exists): ::
59 sat package <product> --force
61 * Include the binaries in the archive (modules and prerequisites): ::
63 sat package <product> --binaries
65 This command will create an archive named ``<product>_<arch>.tar.gz`` where <arch> is the architecture of the machine.
67 * Set content of the archive: ::
69 # only the prerequisites
70 sat package <product> --content ps,pb
71 # only the modules sources
72 sat package <product> --content ms
74 sat package <product> --content mb,pb
77 Possible values for content option are:
79 * mb: modules binaries
80 * ps: prerequisites sources
81 * pb: prerequisites binaries
83 .. note:: this option is not compatible with the *--binaries* option.
85 * Include the modules and prerequisites of the base product: ::
87 sat package <product> --with_base
89 * Simulate the creation of the package (only check for required components): ::
91 sat package <product> --simulate
93 * Do not include sample modules (like HELLO): ::
95 sat package <product> --no_sample
97 Sample modules are identified by the ``$TOOLS.common.module_info.<module_name>.module_type`` parameter.
99 By default salomeTools creates a copy of the installer with the same name than
100 the package. Use this option to not generate the installer.
102 * Do not delete version control system informations from the configurations files of the embedded salomeTools: ::
104 sat package <product> --with_vcs
106 The version control systems (vcs) taken into account by this option are CVS, SVN and Git.
110 No specific configuration.