-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·53 lines (40 loc) · 910 Bytes
/
build.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
#!/bin/bash
set -e
set -o pipefail # Bashism
export variant=standard
export arch=$2
export version=$3
function helper() {
echo -e "Parrot Libre Build System
USAGE
./build.sh <action> [<arch> <version>]
EXPLAINATION
action - help, build
the action to be performed by this program
help will show this message, build will start
the build if correctly combined with variant, arch and version
arch - i386, amd64, armel, armhf
the architecture that will be built
version - the version of parrot that has to be
written in the live boot menu
EXAMPLE
./build.sh build amd64 3.0-CUSTOM
"
}
function build() {
lb clean
lb config
lb build &&\
mv live-image-*.hybrid.iso Parrot-Libre-$version\_$arch.iso
}
case $1 in
build)
build
;;
help)
helper
;;
*)
helper
;;
esac