-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebuild-configured.sh
executable file
·61 lines (51 loc) · 1.18 KB
/
rebuild-configured.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
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
set -a
source $(dirname $0 )/env.sh
CFLAGS="-DMCHP_VERSION=v${MCHP_VERSION}-${SYSTEM_NAME}"
if cd ${BINUTILS_DIR}
then
find ${BINUTILS_DIR} -path '*/.svn' -prune -o -name "*.y" -o -name "*.l" -exec touch '{}' ';'
if make
then
if sudo make install
then
if cd ${GCC_DIR}-build
then
find ${GCC_DIR} -path '*/.svn' -prune -o -name "*.y" -o -name "*.l" -exec touch '{}' ';'
if make
then
if ! sudo make install
then
echo "$0 Error running 'make install'." >&2
exit 1
else
if ! sudo ${TOPD}/instalink.sh
then
echo "$0 Error symlinking in ${C30_INSTALL}." >&2
exit 1
else
echo >&2
echo "$0 Completed rebuild and install." >&2
exit 0
fi
fi
else
echo "$0 Error running make in ${GCC_DIR}-build" >&2
exit 1
fi
else
echo "$0 Error directory not found {GCC_DIR}-build=${GCC_DIR}-build." >&2
exit 1
fi
else
echo "$0 Error running make install in ${BINUTILS_DIR}" >&2
exit 1
fi
else
echo "$0 Error running make in ${BINUTILS_DIR}" >&2
exit 1
fi
else
echo "$0 Error directory not found BINUTILS_DIR=${BINUTILS_DIR}." >&2
exit 1
fi