-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathrebuild-linux.sh
executable file
·49 lines (43 loc) · 1.04 KB
/
rebuild-linux.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
#!/bin/bash
if [ -d "build/linux" ]
then
echo "==========================="
echo "Found existsing linux build"
echo "Deleting build/linux"
echo "==========================="
rm -rf build/linux
echo "========================"
echo "Running ./build-linux.sh"
echo "========================"
./build-linux.sh ../linux
else
echo "========================"
echo "Running ./build-linux.sh"
echo "========================"
./build-linux.sh ../linux
fi
if [ -f "stretch.img" ]
then
echo "===================="
echo "Deleting stretch.img"
echo "===================="
rm stretch.img
fi
if [ -f "stretch.id_rsa" ]
then
echo "======================="
echo "Deleting stretch.id_rsa"
echo "======================="
rm stretch.id_rsa
fi
if [ -f "stretch.id_rsa.pub" ]
then
echo "==========================="
echo "Deleting stretch.id_rsa.pub"
echo "==========================="
rm stretch.id_rsa.pub
fi
echo "========================="
echo "Running ./create-image.sh"
echo "========================="
./create-image.sh