2
2
3
3
mkdir -p /usr/share/man/man1 # long forgotten, but fixes some error
4
4
5
- dpkg --add-architecture i386
6
5
apt-get update
7
6
apt-get -qq install --yes --no-install-recommends \
8
7
bc \
9
8
ca-certificates \
10
9
curl \
11
- libc6:i386 \
12
- libx11-6:i386 \
13
- libxext6:i386 \
14
- libstdc++6:i386 \
15
- libexpat1:i386 \
16
10
libgail18 \
17
11
libgtk2.0-0 \
18
12
libgtk2.0-bin \
@@ -33,23 +27,37 @@ apt-get -qq install --yes --no-install-recommends \
33
27
xz-utils \
34
28
x11-utils " $ADDITIONAL_PACKAGES "
35
29
36
- wait
37
30
38
- V535MINUS=0
39
- if [ " $MPLABX_VERSION " -gt 0 ]
40
- then
41
- V535MINUS=$( bc -l <<< " $MPLABX_VERSION < 5.35" )
42
- fi
31
+ V535MINUS=$( bc -l <<< " $MPLABX_VERSION <= 5.35" )
43
32
33
+ # mplabx >= v5.40 will be 64bit
44
34
if [ " $V535MINUS " -eq 1 ]
35
+ then
36
+ dpkg --add-architecture i386
37
+ apt-get update
38
+ apt-get -qq install --yes --no-install-recommends \
39
+ libc6:i386 \
40
+ libx11-6:i386 \
41
+ libxext6:i386 \
42
+ libstdc++6:i386 \
43
+ libexpat1:i386
44
+ fi
45
+
46
+ V530MINUS=0
47
+ if [ " $MPLABX_VERSION " -gt 0 ]
45
48
then
46
- apt-get install --yes --no-install-recommends default-jre
49
+ V530MINUS=$( bc -l <<< " $MPLABX_VERSION <= 5.30" )
50
+ if [ " $V530MINUS " -eq 1 ]
51
+ then
52
+ # is this even needed after adding JAVA_HOME?
53
+ apt-get install --yes --no-install-recommends default-jre
54
+ fi
47
55
fi
48
56
49
57
/create_user.bash \
50
- && /mplabx_install.bash \
51
- && /toolchain_install.bash \
52
- && /startup_script.bash
58
+ && /mplabx_install.bash \
59
+ && /toolchain_install.bash \
60
+ && /startup_script.bash
53
61
54
62
if [ ! " $C_USER " = root ]
55
63
then
60
68
/cleanup.bash
61
69
apt-get purge --yes bc curl procps make xz-utils
62
70
apt-get -qq clean autoclean \
63
- && rm --recursive --force /usr/share/man/* \
64
- && rm --recursive --force /tmp/* \
65
- && rm --recursive --force /var/log/* \
66
- && bash -c ' rm --recursive --force /var/lib/{apt,dpkg,cache,log}/*' \
67
- && find / -maxdepth 1 -name " *.bash" -delete
71
+ && rm --recursive --force /usr/share/man/* \
72
+ && rm --recursive --force /tmp/* \
73
+ && rm --recursive --force /var/log/* \
74
+ && rm --recursive --force /var/lib/{apt,dpkg,cache,log}/* \
75
+ && find / -maxdepth 1 -name " *.bash" -delete
0 commit comments