2012-01-27 01:04:47 +01:00
|
|
|
##############################################################################
|
|
|
|
# This optional file "builder-targets-cb.sh" will be called by builder.sh
|
|
|
|
#
|
|
|
|
# You can overwrite target functions like
|
|
|
|
# config, prepare, retrieve, create, package, publish, commit, cleanup
|
2012-01-27 10:55:07 +01:00
|
|
|
#
|
|
|
|
# You can define callback functions like
|
2012-01-27 01:04:47 +01:00
|
|
|
# cb_package_makeproductfile
|
|
|
|
#
|
2012-01-27 10:55:07 +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.
|
|
|
|
#
|
2012-01-27 01:04:47 +01:00
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
#function config() {
|
2012-01-27 10:55:07 +01:00
|
|
|
# echo "Config - doing some commands before calling the builder_config"
|
2012-01-27 01:04:47 +01:00
|
|
|
# builder_config
|
2012-01-27 10:55:07 +01:00
|
|
|
# echo "Config - doing some commands after calling the builder_config"
|
2012-01-27 01:04:47 +01:00
|
|
|
#}
|
|
|
|
|
|
|
|
#function prepare() {
|
|
|
|
# echo "Prepare"
|
|
|
|
# builder_prepare
|
|
|
|
#}
|
|
|
|
|
|
|
|
function retrieve() {
|
|
|
|
echo "Retrieve"
|
|
|
|
builder_retrieve
|
|
|
|
}
|
|
|
|
|
|
|
|
function create() {
|
|
|
|
echo "Create"
|
|
|
|
builder_create
|
|
|
|
}
|
|
|
|
|
|
|
|
function package() {
|
|
|
|
echo "Package"
|
|
|
|
builder_package
|
|
|
|
}
|
|
|
|
|
|
|
|
function cb_package_makeproductfile() {
|
|
|
|
echo "May add/replace files to the files to $inst_dir"
|
|
|
|
}
|
|
|
|
|
|
|
|
function publish() {
|
|
|
|
echo "Publish"
|
|
|
|
builder_publish
|
|
|
|
}
|
|
|
|
|
|
|
|
function commit() {
|
|
|
|
echo "Commit"
|
|
|
|
# builder_commit
|
|
|
|
}
|
|
|
|
function cleanup() {
|
|
|
|
echo "Cleanup: output_dir: $output_dir"
|
|
|
|
# builder_cleanup
|
|
|
|
}
|