1#!/bin/bash
2
3# Script to update digiKam installer.
4#
5# Copyright (c) 2013-2021 by Gilles Caulier  <caulier dot gilles at gmail dot com>
6#
7# Redistribution and use is allowed according to the terms of the BSD license.
8# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
9#
10
11# Halt and catch errors
12set -eE
13trap 'PREVIOUS_COMMAND=$THIS_COMMAND; THIS_COMMAND=$BASH_COMMAND' DEBUG
14trap 'echo "FAILED COMMAND: $PREVIOUS_COMMAND"' ERR
15
16. ./config.sh
17. ./common.sh
18StartScript
19
20echo "++++++++++++++++   Build 64 bits Installer   ++++++++++++++++++++++++++++++++++"
21echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
22
23./03-build-digikam.sh
24
25sed -e "s/DK_DEBUG=1/DK_DEBUG=0/g"           ./config.sh > ./tmp.sh ; mv -f ./tmp.sh ./config.sh
26
27./04-build-installer.sh
28
29sed -e "s/DK_DEBUG=0/DK_DEBUG=1/g"           ./config.sh > ./tmp.sh ; mv -f ./tmp.sh ./config.sh
30
31./04-build-installer.sh
32
33sed -e "s/DK_DEBUG=1/DK_DEBUG=0/g"           ./config.sh > ./tmp.sh ; mv -f ./tmp.sh ./config.sh
34
35echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
36
37TerminateScript
38