Code

source: mozilla.firefox/builder-targets-cb.sh @ 621b50

Revision 621b50, 1.9 KB checked in by geos_one, 7 years ago (diff)

Bump to esr verison 24.0 and add addons

  • Property mode set to 100644
Line 
1##############################################################################
2# This optional file "builder-targets-cb.sh" will be called by builder.sh
3#
4# The targets will be called from thde opsi-builder using the following
5# order: config, prepare, retrieve, create, package, publish, commit, cleanup
6# You can overwrite the target functions in builder-targets-cb.sh
7#
8# You can define callback functions. The functions are called from
9# opsi-builder within processing a target
10#   cb_package_makeproductfile
11#
12# You can use every variable defined in any configuration file or by
13# the defined builder script itself. Also, calling the predefined
14# targets builder_<targetname> is possible.
15#
16# Abstract:
17#  target order: config, prepare, retrieve, create, package, publish, commit, cleanup
18#  callbacks: <none>
19#
20##############################################################################
21
22function cleanup() {
23    echo "Cleanup"
24    builder_cleanup
25}
26
27function create() {
28    echo "Create"
29    builder_create
30
31        mkdir -p $INST_DIR/CLIENT_DATA/X86/Addons/bundles
32#       mv  $INST_DIR/CLIENT_DATA/X86/Addons/bundles/*.xpi $INST_DIR/CLIENT_DATA/X86/Addons/bundles
33       
34        pushd $INST_DIR/CLIENT_DATA/X86/Addons/bundles
35        for file in `ls *.xpi`
36        do
37            dirname=`echo $file|sed 's/\.xpi$//g'`
38            mkdir $dirname
39            7z x -o$INST_DIR/CLIENT_DATA/X86/Addons/bundles/$dirname $INST_DIR/CLIENT_DATA/X86/Addons/bundles/$file
40        done
41        popd
42        rm  $INST_DIR/CLIENT_DATA/X86/Addons/bundles/*.xpi
43       
44        mkdir -p $INST_DIR/CLIENT_DATA/X86/Addons/extensions
45#       mv  $INST_DIR/CLIENT_DATA/X86/Addons/extensions/*.xpi $INST_DIR/CLIENT_DATA/X86/Addons/extensions
46
47        pushd $INST_DIR/CLIENT_DATA/X86/Addons/extensions
48        for file in `ls *.xpi`
49        do
50            dirname=`echo $file|sed 's/\.xpi$//g'`
51            mkdir $dirname
52            7z x -o$INST_DIR/CLIENT_DATA/X86/Addons/extensions/$dirname $INST_DIR/CLIENT_DATA/X86/Addons/extensions/$file
53        done
54        popd
55        rm  $INST_DIR/CLIENT_DATA/X86/Addons/extensions/*.xpi
56}
Note: See TracBrowser for help on using the repository browser.