finalize.sh 787 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
11
apt-get remove -y --purge \
  autoconf \
  automake \
  autotools-dev \
  binutils \
Christian Kuhn's avatar
Christian Kuhn committed
12
  build-essential \
Christian Kuhn's avatar
Christian Kuhn committed
13
14
  cpp \
  cpp-5 \
Christian Kuhn's avatar
Christian Kuhn committed
15
  dpkg-dev \
Christian Kuhn's avatar
Christian Kuhn committed
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
  file \
  gcc \
  gcc-5 \
  libasan2 \
  libatomic1 \
  libc-dev-bin \
  libc6-dev \
  libcc1-0 \
  libcilkrts5 \
  libgcc-5-dev \
  libisl15 \
  libitm1 \
  liblsan0 \
  libmpc3 \
  libmpx0 \
  libpcre16-3 \
  libpcre3-dev \
  libpcre32-3 \
  libpcrecpp0v5 \
  libquadmath0 \
  libssl-dev \
  libtool \
  libtsan0 \
  libubsan0 \
  linux-libc-dev \
  m4 \
  make \
  php7.0-dev \
  shtool \
  zlib1g-dev \
  #
Christian Kuhn's avatar
Christian Kuhn committed
47
48
49
50
51
52
53
54
55
56

apt-get clean
rm -rf \
	/var/lib/apt/lists/* \
	/tmp/* \
	/var/tmp/* \
	/usr/local/src/* \
	#

rm -rf /pd_build