Skip to content
sergevs edited this page Oct 13, 2015 · 2 revisions

Advanced Build Tool

Abt is the flexible shell script provides functionality to build packages from a version control system. Currently subversion is supported but any other can be easily integrated. The tool consist of the main script abt - the user interface and functions file which contains generic functions.

Functions executed by stages step by step. The instructions to build package have to be located in the main project source tree, and for redhat package manager(rpm) located in RPM/SPECS directory, for debian in debian and have to contain a file(s) which describe instructions for a particular packaging system and optional abt control file which can contain additional required to build project instructions: as an instance a description of other modules/libraries which can be located in another version system or abt functions used for build the project.

Here is the sample of build command:

$abt -v 2.1.0.0  abt   `
INFO - started /usr/bin/abt 00:20:04 14.10.2015
INFO - invoking svnInitEnv[1]
INFO - invoking rpmInitEnv[2], initializing rpmbuild
INFO - invoking svnPrepare[10]
INFO - invoking logFromJira4[20]
INFO - invoking modifySpec[30]
INFO - invoking rpmDirPrepare[40]
INFO - invoking rpmBuild[50], using rpmbuild
INFO - build cycle: 1, rpm macro(s): not set
INFO - invoking rpmRepoCopy[70]
INFO - invoking cleanUp[90]
INFO - finished /usr/bin/abt 00:20:16 14.10.2015
Clone this wiki locally