From be5fc8374b3f71f9348d03de0719dd7aabbb2096 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Sat, 28 Jan 2012 22:36:01 +0100 Subject: [PATCH] correct a copy problem --- builder-targets-cb.sh | 79 +++++++++++++++++++++++++++++-------------- 1 file changed, 53 insertions(+), 26 deletions(-) diff --git a/builder-targets-cb.sh b/builder-targets-cb.sh index 11e068e..639eff1 100644 --- a/builder-targets-cb.sh +++ b/builder-targets-cb.sh @@ -1,33 +1,60 @@ -############################ -# Setup product information -############################ -VENDOR="softmaker.de" -PN="tmviewer" -VERSION="2010" -RELEASE="10" -PRIORITY="0" -ADVICE="" +############################################################################## +# This optional file "builder-targets-cb.sh" will be called by builder.sh +# +# 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 +# +# You can use every variable defined in any configuration file or by +# the defined builder script itself. Also, calling the predefined +# targets builder_ is possible. +# +# Abstract: +# target order: config, prepare, retrieve, create, package, publish, commit, cleanup +# callbacks: +# +############################################################################## -TYPE="restrict" +#function config() { +# echo "Config - doing some commands before calling the builder_config" +# builder_config +# echo "Config - doing some commands after calling the builder_config" +#} -##################### -# File object array -##################### +#function prepare() { +# echo "Prepare" +# builder_prepare +#} -FILE[0]="SoftMaker-Logo.png_medium.png" -SOURCE[0]="http://www.android-user.de/var/ezflow_site/storage/images/artikel/exklusiv-vorschau-auf-softmaker-office-fuer-android/softmaker-logo.png/25888-1-ger-DE/SoftMaker-Logo.png_medium.png" +function retrieve() { + echo "Retrieve" + builder_retrieve +} -FILE[1]="TextMakerViewer2010.msi" -SOURCE[1]="http://internal.graz.disconnected-by-peer.at/Orig/SoftMaker/Viewer/HB/2010/TextMakerViewer2010.msi" -ARCH[1]="X86" -WINST[1]="InstallMsi" +function create() { + echo "Create" + builder_create +} -# Download direct the executable -#FILE[1]="TMViewerSetup.exe" -#SOURCE[1]="http://www.softmaker.net/down/TMViewerSetup.exe" -#ARCH[1]="X86" -#WINST[1]="InstallExe" +function package() { + echo "Package" + builder_package +} -# File array index for the image showing while installing the program -ICON_FILE_INDEX=0 +function publish() { + echo "Publish" + builder_publish +} +function commit() { + echo "Commit" + # builder_commit +} +function cleanup() { + echo "Cleanup: output_dir: $output_dir" + # builder_cleanup +}