finalize.sh 693 Bytes
Newer Older
Christian Kuhn's avatar
Christian Kuhn committed
1
2
3
4
5
6
#!/bin/bash
set -e
source /pd_build/buildconfig
set -x

# remove a ton of packages needed for compilation of apcu and apcu-bc
Christian Kuhn's avatar
Christian Kuhn committed
7
8
9
10
apt-get remove -y --purge \
  autoconf \
  automake \
  autotools-dev \
Christian Kuhn's avatar
Christian Kuhn committed
11
12
  build-essential \
  dpkg-dev \
Christian Kuhn's avatar
Christian Kuhn committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  file \
  libpcre16-3 \
  libpcre3-dev \
  libpcre32-3 \
  libpcrecpp0v5 \
  libquadmath0 \
  libssl-dev \
  libtool \
  libtsan0 \
  libubsan0 \
  linux-libc-dev \
  m4 \
  php7.0-dev \
  shtool \
  zlib1g-dev \
  #
Christian Kuhn's avatar
Christian Kuhn committed
29

30
31
32
33
34
# but keep make and g++ ... to not confuse with above list, just install again if needed
minimal_apt_get_install \
  make \
  g++

Christian Kuhn's avatar
Christian Kuhn committed
35
36
37
38
39
40
41
42
43
apt-get clean
rm -rf \
	/var/lib/apt/lists/* \
	/tmp/* \
	/var/tmp/* \
	/usr/local/src/* \
	#

rm -rf /pd_build