2012-01-27 19:56:01 +01:00
|
|
|
##############################################################################
|
|
|
|
# This optional file "builder-targets-cb.sh" will be called by builder.sh
|
2012-01-28 22:35:35 +01:00
|
|
|
#
|
|
|
|
# The targets will be called from thde opsi-builder using the following
|
|
|
|
# order: config, prepare, retrieve, create, package, publish, commit, cleanup
|
|
|
|
# You can overwrite the target functions in builder-targets-cb.sh
|
|
|
|
#
|
|
|
|
# You can define callback functions. The functions are called from
|
|
|
|
# opsi-builder within processing a target
|
|
|
|
# cb_package_makeproductfile
|
2012-01-27 19:56:01 +01:00
|
|
|
#
|
2012-01-28 22:35:35 +01:00
|
|
|
# You can use every variable defined in any configuration file or by
|
|
|
|
# the defined builder script itself. Also, calling the predefined
|
|
|
|
# targets builder_<targetname> is possible.
|
|
|
|
#
|
|
|
|
# Abstract:
|
2012-01-27 19:56:01 +01:00
|
|
|
# target order: config, prepare, retrieve, create, package, publish, commit, cleanup
|
2012-01-28 22:35:35 +01:00
|
|
|
# callbacks: <none>
|
2012-01-27 19:56:01 +01:00
|
|
|
#
|
|
|
|
##############################################################################
|
|
|
|
|
2012-01-28 22:35:35 +01:00
|
|
|
#function config() {
|
|
|
|
# echo "Config - doing some commands before calling the builder_config"
|
|
|
|
# builder_config
|
|
|
|
# echo "Config - doing some commands after calling the builder_config"
|
|
|
|
#}
|
|
|
|
|
|
|
|
#function prepare() {
|
|
|
|
# echo "Prepare"
|
|
|
|
# builder_prepare
|
|
|
|
#}
|
|
|
|
|
|
|
|
function retrieve() {
|
|
|
|
echo "Retrieve"
|
|
|
|
builder_retrieve
|
|
|
|
}
|
2012-01-27 19:56:01 +01:00
|
|
|
|
|
|
|
function create() {
|
|
|
|
echo "Create"
|
|
|
|
builder_create
|
|
|
|
}
|
|
|
|
|
2012-01-28 22:35:35 +01:00
|
|
|
function package() {
|
|
|
|
echo "Package"
|
|
|
|
builder_package
|
|
|
|
}
|
|
|
|
|
|
|
|
function publish() {
|
|
|
|
echo "Publish"
|
|
|
|
builder_publish
|
|
|
|
}
|
|
|
|
|
|
|
|
function commit() {
|
|
|
|
echo "Commit"
|
|
|
|
# builder_commit
|
|
|
|
}
|
2012-01-27 19:56:01 +01:00
|
|
|
function cleanup() {
|
2012-01-28 22:35:35 +01:00
|
|
|
echo "Cleanup: output_dir: $output_dir"
|
|
|
|
# builder_cleanup
|
2012-01-27 19:56:01 +01:00
|
|
|
}
|