2013-05-06 10:56:01 +02:00
##############################################################################
# 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_<targetname> is possible.
#
# Abstract:
# target order: config, prepare, retrieve, create, package, publish, commit, cleanup
# callbacks: <none>
#
##############################################################################
function cleanup( ) {
echo "Cleanup"
builder_cleanup
}
2013-05-06 14:41:27 +02:00
function create( ) {
echo "Create"
builder_create
2013-10-16 14:35:58 +02:00
mkdir -p $INST_DIR /CLIENT_DATA/X86_64/Addons/bundles
# mv $INST_DIR/CLIENT_DATA/X86_64/Addons/bundles/*.xpi $INST_DIR/CLIENT_DATA/X86_64/Addons/bundles
2013-05-06 14:41:27 +02:00
2013-10-16 14:35:58 +02:00
pushd $INST_DIR /CLIENT_DATA/X86_64/Addons/bundles
2013-05-06 14:41:27 +02:00
for file in ` ls *.xpi`
do
dirname = ` echo $file | sed 's/\.xpi$//g' `
mkdir $dirname
2013-10-16 14:35:58 +02:00
7z x -o$INST_DIR /CLIENT_DATA/X86_64/Addons/bundles/$dirname $INST_DIR /CLIENT_DATA/X86_64/Addons/bundles/$file
2013-05-06 14:41:27 +02:00
done
popd
2013-10-16 14:35:58 +02:00
rm $INST_DIR /CLIENT_DATA/X86_64/Addons/bundles/*.xpi
sed -e "s!Mozilla Foundation!Waterfox Limited!" -i $INST_DIR /CLIENT_DATA/X86_64/Addons/bundles/langpack-de@firefox.mozilla.org/browser/chrome/de/locale/branding/*.*
sed -e "s!Mozilla!Waterfox Project!" -i $INST_DIR /CLIENT_DATA/X86_64/Addons/bundles/langpack-de@firefox.mozilla.org/browser/chrome/de/locale/branding/*.*
sed -e "s!Firefox!Waterfox!" -i $INST_DIR /CLIENT_DATA/X86_64/Addons/bundles/langpack-de@firefox.mozilla.org/browser/chrome/de/locale/branding/*.*
sed -e "s!Firefox-Logos!Waterfox-Logos!" -i $INST_DIR /CLIENT_DATA/X86_64/Addons/bundles/langpack-de@firefox.mozilla.org/browser/chrome/de/locale/branding/*.*
2013-05-06 14:41:27 +02:00
2013-10-16 14:35:58 +02:00
mkdir -p $INST_DIR /CLIENT_DATA/X86_64/Addons/extensions
# mv $INST_DIR/CLIENT_DATA/X86_64/Addons/extensions/*.xpi $INST_DIR/CLIENT_DATA/X86_64/Addons/extensions
2013-05-06 14:41:27 +02:00
2013-10-16 14:35:58 +02:00
pushd $INST_DIR /CLIENT_DATA/X86_64/Addons/extensions
2013-05-06 17:03:10 +02:00
for file in ` ls *.xpi`
do
dirname = ` echo $file | sed 's/\.xpi$//g' `
mkdir $dirname
2013-10-16 14:35:58 +02:00
7z x -o$INST_DIR /CLIENT_DATA/X86_64/Addons/extensions/$dirname $INST_DIR /CLIENT_DATA/X86_64/Addons/extensions/$file
2013-05-06 17:03:10 +02:00
done
popd
2013-10-16 14:35:58 +02:00
rm $INST_DIR /CLIENT_DATA/X86_64/Addons/extensions/*.xpi
2013-05-06 14:41:27 +02:00
}