blob: 37d2b21de8ff09fc94a5e1fb20255c8a7f9a9aaa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/bash
# Copyright 2015 Holger Levsen <holger@layer-acht.org>
# released under the GPLv=2
#
# configures mock for a given distro and architecture
#
DEBUG=false
. /srv/jenkins/bin/common-functions.sh
common_init "$@"
if [ -z "$1" ] || [ -z "$2" ] ; then
echo "Need distro and architecture as params"
exit 1
fi
DISTRO=$1
ARCHITECTURE=$2
echo "$(date -u) - showing setup."
dpkg -l mock
id
echo "$(date -u) - starting to cleanly configure mock for ${DISTRO} on ${ARCHITECTURE}."
set -x
mock -r ${DISTRO}-${ARCHITECTURE} --resultdir=. --clean
mock -r ${DISTRO}-${ARCHITECTURE} --resultdir=. --init
set +x
echo "$(date -u) - mock configured for ${DISTRO} on ${ARCHITECTURE}."
|