forked from PhysixProject/physix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD_04-08.sh
executable file
·80 lines (66 loc) · 1.36 KB
/
BUILD_04-08.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/bin/bash
# SPDX-License-Identifier: MIT
# Copyright (C) 2020 Tree Davies
if [ `id -u` -ne 0 ] ; then
echo "Error: Must be run as root"
exit 1
fi
if [ `pwd` != '/opt/admin/physix' ] ; then
echo "Error: Current Working Directory is not /opt/admin/physix"
exit 1
fi
make-ca -g
if [ $? -ne 0 ] ; then
echo "make-ca failure"
exit 1
fi
for RECIPE in 04-utilities.json 05-services.json 05-testing.json 05-xorg.json 06-lightdm.json 07-lxde.json 08-xapps.json ; do
./catalyst -p $RECIPE
if [ $? -ne 0 ] ; then
echo "$RECIPE: Download soureces Failed"
exit 1
fi
done
./catalyst -r INITIAL_BOOT
./catalyst -b 04-utilities.json
if [ $? -ne 0 ] ; then
echo "Build Failed"
exit 1
fi
./catalyst -r SNAP_B
./catalyst -b 05-services.json
if [ $? -ne 0 ] ; then
echo "Build Failed"
exit 1
fi
./catalyst -r SNAP_C
./catalyst -b 05-testing.json
if [ $? -ne 0 ] ; then
echo "Build Failed"
exit 1
fi
./catalyst -r SNAP_D
./catalyst -b 05-xorg.json
if [ $? -ne 0 ] ; then
echo "Build Failed"
exit 1
fi
./catalyst -r SNAP_E
./catalyst -b 06-lightdm.json
if [ $? -ne 0 ] ; then
echo "Build Failed"
exit 1
fi
./catalyst -r SNAP_F
./catalyst -b 07-lxde.json
if [ $? -ne 0 ] ; then
echo "Build Failed"
exit 1
fi
./catalyst -r SNAP_G
./catalyst -b 08-xapps.json
if [ $? -ne 0 ] ; then
echo "Build Failed"
exit 1
fi
./catalyst -r SNAP_H