/
gmCLDeployTool
gmCLDeployTool
Mark Juras
Owned by Mark Juras
Need For File Deployment
A contemporary sourcecode site consists of a very large number of files, some of which are text files and some of which have binary formats. It is the mandate of this system that it be able to process an existing sourcecode site and to then transform it into a new sourcecode site with different files, different structure, and even with different internal file format. In addition, this system itself has its own sourcecode site which must be organized and often reconfigured, so that it can be moved to new sites. The term "Deployment" is used to refer to the various operations required to gather large numbers of files into a few bundles and then to redistribute those bundles in a new location.The Deployment Command Line
This page describes how to start the Deployment tool on the command line. The syntax of the command line is as followsDeploy filename[.bnd | .dir] [switches]
The actual task performed by the tool depends upon the filename extension. The following different file types are recognized:
Ext | Description of task |
bnd | The specified file contains a bundled multi-file output of the tool. At this point, the files in the bundle are unbundled and deployed to their final target destinations. |
dir | The specified file contains a list of filenames that are to be bundled into a single file for easy backup, later redeployment, or transfer to another environment. |
Switch | Description |
---|---|
ES | Echoes the input to the tool as it reads it |
UNIX | Requests that text files use UNIX linefeed conventions |
QUIET | Requests that no process messages be displayed |
VERBOSE | Requests that progress messages be displayed |
REPLACE | Requests that existing files be replaced |
DEPLOY | Requests that file management commands be executed |
NOHEADER | Requests that no header be displayed |
FULL | Retain full file path when bundling a list.dir file |
Xname | Specifies an extraction location |
Mname | Specifies the name of the file to be made |
Pname | Specifies an input filename prefix |
A Simple Example
To better understand the need for this deployment capability and the basic bundling and unbundling operations that it performs, the following is a simple example. This work is being performed in a Microsoft command window. Keeping things simple, the editor being used is notepad. A user of this system has submitted a zip-file that was produced on a Linux machine that contains a large number of individual source files along with a copy of the script used to do a build and the log of that build. That log, called buildads.log, shows errors which need to be corrected.> dir/b *.log,*.sh buildads.log buildads.sh
> dir/b *.log,*.sh >test.dir
> Deploy test.dir
cat >buildads.log <<'!)(!' mkdir -p ./lnx echo Making imslib.a ... Making imslib.a ... cd imslib rm -r -f *.o cc -c -DAN6PLAT -I./ -I../include *.c rdqlocal.c: In function `RdqPushSymbol': ..... !)(! cat >buildads.sh <<'!)(!' mkdir -p ./lnx echo Making imslib.a ... cd imslib ..... !)(!
> Deploy test.bnd verbose deploy V9.82 (BETA.001) System Build(12/08/09 16:05:15) The file already exists: buildads.log The file already exists: buildads.sh
> Deploy test.bnd verbose REPLACE deploy V9.82 (BETA.001) System Build(12/08/09 16:05:15) Unbundling: buildads.log Unbundling: buildads.sh
> deploy test.dir UNIX VERBOSE deploy V9.82 (BETA.001) System Build(12/08/09 16:05:15) Processing: buildads.log Processing: buildads.sh
> sh test.bnd
On Windows, though it is now in UNIX format, test.bnd will unbundle into files that use Windows end-of-line format conventions
> deploy test.bnd verbose REPLACE deploy V9.82 (BETA.001) System Build(12/08/09 16:05:15) Unbundling: buildads.log Unbundling: buildads.sh
Table of Contents
, multiple selections available,
Related content
gmCLIntroduction
gmCLIntroduction
More like this
gmplCommandStatements
gmplCommandStatements
More like this
Glossary
Glossary
More like this
gmslExecuteClass
gmslExecuteClass
More like this
Deployment
Deployment
More like this
gmCLPbasicTool
gmCLPbasicTool
More like this