-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock-prep.sh
executable file
·49 lines (42 loc) · 988 Bytes
/
mock-prep.sh
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
arch=$1
shift
if [ -z "$arch" ]; then
echo "Specify if 32 or 64 arch sync"
exit 1
fi
PREFIX=`dirname "$0"`
if [ -r ./mock-config.txt ]; then
echo "Reading ./mock-config.txt"
. ./mock-config.txt
else
echo "Missig mock-config.txt"
exit 1
fi
if [ $arch = "32" ]; then
ROOT=$ROOT32
EXTRA=$EXTRA32
arch_tag=i686
elif [ $arch = "64" ]; then
ROOT=$ROOT64
EXTRA=$EXTRA64
arch_tag=x86_64
else
echo "Pick a correct sync arch (32 or 64)"
exit
fi
if [ "$1" == "init" ]; then
mock -r $ROOT --init
shift
fi
mock -r $ROOT --install ccache dos2unix \
pkgconfig mesa-libGLU-devel \
libX11-devel libXrandr-devel libXmu-devel \
libXi-devel libXext-devel libXft-devel \
alsa-lib-devel freeglut-devel \
libtiff-devel curl-devel \
pulseaudio-libs-devel freetype-devel cmake $EXTRA \
libpng-devel libjpeg-devel zlib-devel fltk \
vim-enhanced libXinerama-devel libXpm-devel \
libuuid-devel \
$*